Re: [HACKERS] quick Date question

From: "Thomas G(dot) Lockhart" <lockhart(at)alumni(dot)caltech(dot)edu>
To: "Jackson, DeJuan" <djackson(at)cpsgroup(dot)com>
Cc: PGSQL Hackers <pgsql-hackers(at)hub(dot)org>
Subject: Re: [HACKERS] quick Date question
Date: 1999-03-01 16:38:27
Message-ID: 36DAC283.7F658AC5@alumni.caltech.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> select '12/13/1901 18:00:00 CST'::datetime;
> ----------------------------
> Fri Dec 13 18:00:00 1901 CST
> select '12/13/1901 17:59:59 CST'::datetime;
> ------------------------
> Fri Dec 13 23:59:59 1901
> Why???

Unix time databases do not have support for dates earlier than 1903 (?)
since Unix system time does not go back farther than that. Also, it
would be inappropriate (imho) to adopt the current conventions for
timezone since those conventions did not exist back then.

So date/time outside of the Unix system time range is displayed as UTC.
You had forced a different time zone in your input, but the output is
the same time in the universal time zone. If you do not specify a time
zone then the output matches the input exactly.

- Tom

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas G. Lockhart 1999-03-01 17:10:49 Re: OUTER joins
Previous Message Giuseppe Tanzilli 1999-03-01 15:23:42 Bug report