1

このクエリを使用して最大秒数を変換できます

SELECT TIMESTAMP 'epoch' + 1362508200000(06/032013 00:00:00)/1000
       * INTERVAL '1 second'

しかし、ミリ秒に変換したい (06/032013 00:00:00.625362)

4

1 に答える 1

1
postgres=# select extract(current_timestamp からのエポック);
    日付_部分     
------------------
 1370602871.47581
(1行)

postgres=# select to_timestamp(1370602871.47581);
         to_timestamp         
------------------------------
 2013-06-07 13:01:11.47581+02
(1行)
于 2013-06-07T11:01:40.623 に答える