1
1
<!--
2
- $Header: /cvsroot/pgsql/doc/src/sgml/datetime.sgml,v 2.6 2000/02/02 16:21:06 thomas Exp $
2
+ $Header: /cvsroot/pgsql/doc/src/sgml/datetime.sgml,v 2.7 2000/03/29 03:57:10 thomas Exp $
3
3
Date/time details
4
4
5
5
$Log: datetime.sgml,v $
6
+ Revision 2.7 2000/03/29 03:57:10 thomas
7
+ Change rules for interpreting date/time input to disallow 1 and 3 character
8
+ years. Rejects dates like '0.085', which were accepted previously.
9
+ Minor mods of ODBC markup.
10
+
6
11
Revision 2.6 2000/02/02 16:21:06 thomas
7
12
Add detailed information on Australian time zones.
8
13
@@ -578,7 +583,7 @@ Finish initial markup of cvs.sgml, and include it in the programmer's guide
578
583
579
584
<step>
580
585
<para>
581
- If longer than two digits, then interpret as a year.
586
+ If four or more digits, then interpret as a year.
582
587
</para>
583
588
</step>
584
589
@@ -605,7 +610,13 @@ Finish initial markup of cvs.sgml, and include it in the programmer's guide
605
610
606
611
<step>
607
612
<para>
608
- Otherwise, interpret as a year.
613
+ If two digits or four or more digits, then interpret as a year.
614
+ </para>
615
+ </step>
616
+
617
+ <step>
618
+ <para>
619
+ Otherwise, throw an error.
609
620
</para>
610
621
</step>
611
622
</substeps>
@@ -629,10 +640,10 @@ Finish initial markup of cvs.sgml, and include it in the programmer's guide
629
640
<tip>
630
641
<para>
631
642
Gregorian years 1-99AD may be entered by using 4 digits with leading
632
- zeros (e.g. 0099 is 99AD). Three digits are also accepted as a
633
- year under most circumstances, though depending on position the
634
- numeric string may
635
- be interpreted as doy instead .
643
+ zeros (e.g. 0099 is 99AD). Previous versions of
644
+ <productname>Postgres</productname> accepted years with three
645
+ digits and with single digits, but as of v7.0 the rules have
646
+ been tightened up to reduce the possibility of ambiguity .
636
647
</para>
637
648
</tip>
638
649
</para>
0 commit comments