SELECT CURRENT_TIMESTAMP 当前时间带区
, EXTRACT(EPOCH FROM CURRENT_TIMESTAMP ) 当前时间戳
, CAST(EXTRACT(epoch FROM CAST( '2020-11-11 00:00:00' AS TIMESTAMP))*1000 AS int8) 十三位时间戳
, CAST(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP )* 1000 AS int8) 十三位时间戳
,to_char(to_timestamp(CAST(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP )* 1000 AS int8) / 1000) AT TIME ZONE 'PRC', 'yyyy-mm-dd hh24:mi:ss') 时间戳转日期
epoch 表示距新世纪 1970-01-01 00:00:00 的秒数.