Indicated Epoch 0 is incorrect - Mailing list pgsql-docs

From [email protected]
Subject Indicated Epoch 0 is incorrect
Date
Msg-id [email protected]
Whole thread Raw
Responses Re: Indicated Epoch 0 is incorrect
List pgsql-docs
The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/9.1/static/functions-datetime.html
Description:

Per /docs/current/static/functions-datetime.html (and earlier), epoch is
defined as:

"For date and timestamp values, the number of seconds since 1970-01-01
00:00:00 UTC".

The correct value to obtain 0 is as follows:

SELECT EXTRACT(EPOCH FROM TIMESTAMP WITH TIME ZONE '1970-01-01 8:00:00.0')

pgsql-docs by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Docbook 5.x
Next
From: [email protected]
Date:
Subject: Typo