Re: missing epoch timestamps literals in examples

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: hans(at)matfyz(dot)cz
Cc: pgsql-docs(at)lists(dot)postgresql(dot)org
Subject: Re: missing epoch timestamps literals in examples
Date: 2020-07-08 13:21:57
Message-ID: 1701189.1594214517@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

PG Doc comments form <noreply(at)postgresql(dot)org> writes:
> I am missing how to work with unix (date)time(stamps) from epoch, e.g.
> 1592203289.310 for 2020-06-15T06:41:29.31.

regression=# select to_timestamp(1592203289.310);
to_timestamp
---------------------------
2020-06-15 02:41:29.31-04
(1 row)

regards, tom lane

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Stephen Frost 2020-07-08 14:00:37 Re: Default setting for enable_hashagg_disk
Previous Message PG Doc comments form 2020-07-08 12:47:18 missing epoch timestamps literals in examples