mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +03:00
Sequence of date interpretation not quite right.
This commit is contained in:
@ -1,8 +1,11 @@
|
|||||||
<!--
|
<!--
|
||||||
$Header: /cvsroot/pgsql/doc/src/sgml/datetime.sgml,v 2.4 1999/06/23 06:17:51 thomas Exp $
|
$Header: /cvsroot/pgsql/doc/src/sgml/datetime.sgml,v 2.5 1999/10/12 13:57:04 thomas Exp $
|
||||||
Date/time details
|
Date/time details
|
||||||
|
|
||||||
$Log: datetime.sgml,v $
|
$Log: datetime.sgml,v $
|
||||||
|
Revision 2.5 1999/10/12 13:57:04 thomas
|
||||||
|
Sequence of date interpretation not quite right.
|
||||||
|
|
||||||
Revision 2.4 1999/06/23 06:17:51 thomas
|
Revision 2.4 1999/06/23 06:17:51 thomas
|
||||||
Clarify input/output timezone information.
|
Clarify input/output timezone information.
|
||||||
Add detail on exact interpretation of "concatenated date"
|
Add detail on exact interpretation of "concatenated date"
|
||||||
@ -425,13 +428,13 @@ Finish initial markup of cvs.sgml, and include it in the programmer's guide
|
|||||||
then <literal>EST</literal> refers to Australia Eastern Std Time,
|
then <literal>EST</literal> refers to Australia Eastern Std Time,
|
||||||
which has an offset of +10:00 hours from UTC.
|
which has an offset of +10:00 hours from UTC.
|
||||||
</para>
|
</para>
|
||||||
</note>
|
|
||||||
</para>
|
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
Australian time zones and their naming variants
|
Australian time zones and their naming variants
|
||||||
account for fully one quarter of all time zones in the
|
account for fully one quarter of all time zones in the
|
||||||
<productname>Postgres</productname> time zone lookup table.
|
<productname>Postgres</productname> time zone lookup table.
|
||||||
|
</para>
|
||||||
|
</note>
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<procedure>
|
<procedure>
|
||||||
@ -488,12 +491,13 @@ Finish initial markup of cvs.sgml, and include it in the programmer's guide
|
|||||||
Do a binary-search table lookup for the token
|
Do a binary-search table lookup for the token
|
||||||
as either a special string (e.g. <literal>today</literal>),
|
as either a special string (e.g. <literal>today</literal>),
|
||||||
day (e.g. <literal>Thursday</literal>),
|
day (e.g. <literal>Thursday</literal>),
|
||||||
month (e.g. <literal>January</literal>), or noise word (e.g. <literal>on</literal>).
|
month (e.g. <literal>January</literal>),
|
||||||
|
or noise word (e.g. <literal>on</literal>).
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
Set field values and bit mask for fields.
|
Set field values and bit mask for fields.
|
||||||
For example, set year, month, day for <literal>today</literal>, and additionally
|
For example, set year, month, day for <literal>today</literal>,
|
||||||
hour, minute, second for <literal>now</literal>.
|
and additionally hour, minute, second for <literal>now</literal>.
|
||||||
</para>
|
</para>
|
||||||
</step>
|
</step>
|
||||||
|
|
||||||
@ -524,7 +528,7 @@ Finish initial markup of cvs.sgml, and include it in the programmer's guide
|
|||||||
and if no other date fields have been previously read, then interpret
|
and if no other date fields have been previously read, then interpret
|
||||||
as a "concatenated date" (e.g. <literal>19990118</literal>). 8
|
as a "concatenated date" (e.g. <literal>19990118</literal>). 8
|
||||||
and 6 digits are interpreted as year, month, and day, while 7
|
and 6 digits are interpreted as year, month, and day, while 7
|
||||||
and 5 digits are interpreted as year, day of year.
|
and 5 digits are interpreted as year, day of year, respectively.
|
||||||
</para>
|
</para>
|
||||||
</step>
|
</step>
|
||||||
|
|
||||||
@ -550,7 +554,7 @@ Finish initial markup of cvs.sgml, and include it in the programmer's guide
|
|||||||
|
|
||||||
<step>
|
<step>
|
||||||
<para>
|
<para>
|
||||||
If in non-European (US) date mode, and if the month field has not yet been read,
|
If the month field has not yet been read,
|
||||||
and if the value is less than or equal to 12, then interpret as a month.
|
and if the value is less than or equal to 12, then interpret as a month.
|
||||||
</para>
|
</para>
|
||||||
</step>
|
</step>
|
||||||
@ -558,14 +562,7 @@ Finish initial markup of cvs.sgml, and include it in the programmer's guide
|
|||||||
<step>
|
<step>
|
||||||
<para>
|
<para>
|
||||||
If the day field has not yet been read,
|
If the day field has not yet been read,
|
||||||
and if the value is less than or equal to 31, then interpret as a month.
|
and if the value is less than or equal to 31, then interpret as a day.
|
||||||
</para>
|
|
||||||
</step>
|
|
||||||
|
|
||||||
<step>
|
|
||||||
<para>
|
|
||||||
If the month field has not yet been read,
|
|
||||||
and if the value is less than or equal to 12, then interpret as a month.
|
|
||||||
</para>
|
</para>
|
||||||
</step>
|
</step>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user