1
1
<!--
2
- $Header: /cvsroot/pgsql/doc/src/sgml/datetime.sgml,v 2.4 1999/06/23 06:17:51 thomas Exp $
2
+ $Header: /cvsroot/pgsql/doc/src/sgml/datetime.sgml,v 2.5 1999/10/12 13:57:04 thomas Exp $
3
3
Date/time details
4
4
5
5
$Log: datetime.sgml,v $
6
+ Revision 2.5 1999/10/12 13:57:04 thomas
7
+ Sequence of date interpretation not quite right.
8
+
6
9
Revision 2.4 1999/06/23 06:17:51 thomas
7
10
Clarify input/output timezone information.
8
11
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
425
428
then <literal>EST</literal> refers to Australia Eastern Std Time,
426
429
which has an offset of +10:00 hours from UTC.
427
430
</para>
428
- </note>
429
- </para>
430
431
431
- <para>
432
- Australian time zones and their naming variants
433
- account for fully one quarter of all time zones in the
434
- <productname>Postgres</productname> time zone lookup table.
432
+ <para>
433
+ Australian time zones and their naming variants
434
+ account for fully one quarter of all time zones in the
435
+ <productname>Postgres</productname> time zone lookup table.
436
+ </para>
437
+ </note>
435
438
</para>
436
439
437
440
<procedure>
@@ -488,12 +491,13 @@ Finish initial markup of cvs.sgml, and include it in the programmer's guide
488
491
Do a binary-search table lookup for the token
489
492
as either a special string (e.g. <literal>today</literal>),
490
493
day (e.g. <literal>Thursday</literal>),
491
- month (e.g. <literal>January</literal>), or noise word (e.g. <literal>on</literal>).
494
+ month (e.g. <literal>January</literal>),
495
+ or noise word (e.g. <literal>on</literal>).
492
496
</para>
493
497
<para>
494
498
Set field values and bit mask for fields.
495
- For example, set year, month, day for <literal>today</literal>,and additionally
496
- hour, minute, second for <literal>now</literal>.
499
+ For example, set year, month, day for <literal>today</literal>,
500
+ and additionally hour, minute, second for <literal>now</literal>.
497
501
</para>
498
502
</step>
499
503
@@ -524,7 +528,7 @@ Finish initial markup of cvs.sgml, and include it in the programmer's guide
524
528
and if no other date fields have been previously read, then interpret
525
529
as a "concatenated date" (e.g. <literal>19990118</literal>). 8
526
530
and 6 digits are interpreted as year, month, and day, while 7
527
- and 5 digits are interpreted as year, day of year.
531
+ and 5 digits are interpreted as year, day of year, respectively .
528
532
</para>
529
533
</step>
530
534
@@ -550,22 +554,15 @@ Finish initial markup of cvs.sgml, and include it in the programmer's guide
550
554
551
555
<step>
552
556
<para>
553
- Ifin non-European (US) date mode, and if the month field has not yet been read,
557
+ If the month field has not yet been read,
554
558
and if the value is less than or equal to 12, then interpret as a month.
555
559
</para>
556
560
</step>
557
561
558
562
<step>
559
563
<para>
560
564
If the day field has not yet been read,
561
- and if the value is less than or equal to 31, then interpret as a month.
562
- </para>
563
- </step>
564
-
565
- <step>
566
- <para>
567
- If the month field has not yet been read,
568
- and if the value is less than or equal to 12, then interpret as a month.
565
+ and if the value is less than or equal to 31, then interpret as a day.
569
566
</para>
570
567
</step>
571
568