1

I am able to convert upto seconds by using this query

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

But I want to convert into milliseconds, (06/032013 00:00:00.625362)

4

1 回答 1

1
postgres=# select extract(epoch from current_timestamp);
    日期部分     
------------------
 1370602871.47581
(1 行)

postgres=#选择to_timestamp(1370602871.47581);
         to_timestamp         
------------------------------
 2013-06-07 13:01:11.47581+02
(1 行)
于 2013-06-07T11:01:40.623 回答