Indicated Epoch 0 is incorrect

From: ian(at)thepathcentral(dot)com
To: pgsql-docs(at)postgresql(dot)org
Subject: Indicated Epoch 0 is incorrect
Date: 2016-06-03 23:44:04
Message-ID: 20160603234404.9927.3198@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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')

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message gp0072000 2016-06-04 07:28:02 Typo
Previous Message Peter Eisentraut 2016-06-03 19:31:31 Re: Docbook 5.x