From 14bf5cb83c7fcbf0b62d2395ad3568a953ecfe5b Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 1 Dec 2003 20:35:04 +0000 Subject: [PATCH] Minor wordsmithing in datetime docs to try to address gripes raised by cnliou. --- doc/src/sgml/datatype.sgml | 31 ++++++++++++++++--------------- doc/src/sgml/datetime.sgml | 16 +++++++++++++--- 2 files changed, 29 insertions(+), 18 deletions(-) diff --git a/doc/src/sgml/datatype.sgml b/doc/src/sgml/datatype.sgml index e89f9aa7f3..7bbc698fe2 100644 --- a/doc/src/sgml/datatype.sgml +++ b/doc/src/sgml/datatype.sgml @@ -1301,7 +1301,7 @@ SELECT b, char_length(b) FROM test2; 8 bytes both date and time 4713 BC - AD 5874897 + 5874897 AD 1 microsecond / 14 digits @@ -1309,7 +1309,7 @@ SELECT b, char_length(b) FROM test2; 8 bytes both date and time, with time zone 4713 BC - AD 5874897 + 5874897 AD 1 microsecond / 14 digits @@ -1348,6 +1348,14 @@ SELECT b, char_length(b) FROM test2; + + + Prior to PostgreSQL 7.3, writing just + timestamp was equivalent to timestamp with + time zone. This was changed for SQL compliance. + + + time, timestamp, and interval accept an optional precision value @@ -1363,23 +1371,16 @@ SELECT b, char_length(b) FROM test2; When timestamp values are stored as double precision floating-point numbers (currently the default), the effective limit of precision may be less than 6. timestamp values are stored as seconds - since 2000-01-01, and microsecond precision is achieved for dates within - a few years of 2000-01-01, but the precision degrades for dates further - away. When timestamp values are stored as eight-byte integers (a compile-time + before or after midnight 2000-01-01. Microsecond precision is achieved for + dates within a few years of 2000-01-01, but the precision degrades for + dates further away. When timestamp values are stored as + eight-byte integers (a compile-time option), microsecond precision is available over the full range of - values. However eight-byte integer timestamps have a reduced range of - dates from 4713 BC up to 294276 AD. + values. However eight-byte integer timestamps have a more limited range of + dates than shown above: from 4713 BC up to 294276 AD. - - - Prior to PostgreSQL 7.3, writing just - timestamp was equivalent to timestamp with - time zone. This was changed for SQL compliance. - - - For the time types, the allowed range of p is from 0 to 6 when eight-byte integer diff --git a/doc/src/sgml/datetime.sgml b/doc/src/sgml/datetime.sgml index 4dd503d066..ac74d46108 100644 --- a/doc/src/sgml/datetime.sgml +++ b/doc/src/sgml/datetime.sgml @@ -370,15 +370,25 @@ $Header$ shows the time zone - abbreviations recognized by PostgreSQL. - PostgreSQL contains internal tabular - information for time zone decoding, since there is no standard + abbreviations recognized by PostgreSQL + in date/time input values. + PostgreSQL uses internal tables + for time zone input decoding, since there is no standard operating system interface to provide access to general, cross-time zone information. The underlying operating system is used to provide time zone information for output, however. + + Keep in mind also that the time zone names + recognized by SET TIMEZONE are operating-system + dependent and may have little to do with . For example, some systems + recognize values like 'Europe/Rome' in SET + TIMEZONE. + + The table is organized by time zone offset from UTC, rather than alphabetically. This is intended to facilitate -- 2.39.5