summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2003-08-25 23:30:27 +0000
committerTom Lane2003-08-25 23:30:27 +0000
commit3e51c1553c582593704f88ff34d7b4e0423efe00 (patch)
treeab4b183d290ef6bcfffe5a97e680d5e2d83a7777
parent412c57b15fa0b34d5e25ac37a39684b03eeef68a (diff)
Add the Brazilian time zone abbreviations BRT, BRST, FNT, FNST.
ACT and ACST were already present. AMT and AMST conflict with the existing entries for Armenia; no change there for the moment.
-rw-r--r--doc/src/sgml/datetime.sgml42
-rw-r--r--src/backend/utils/adt/datetime.c27
2 files changed, 40 insertions, 29 deletions
diff --git a/doc/src/sgml/datetime.sgml b/doc/src/sgml/datetime.sgml
index c205ee9c314..9c8a4077f1b 100644
--- a/doc/src/sgml/datetime.sgml
+++ b/doc/src/sgml/datetime.sgml
@@ -1,5 +1,5 @@
<!--
-$Header: /cvsroot/pgsql/doc/src/sgml/datetime.sgml,v 2.32 2003/07/29 00:03:17 tgl Exp $
+$Header: /cvsroot/pgsql/doc/src/sgml/datetime.sgml,v 2.33 2003/08/25 23:30:25 tgl Exp $
-->
<appendix id="datetime-appendix">
@@ -536,18 +536,10 @@ $Header: /cvsroot/pgsql/doc/src/sgml/datetime.sgml,v 2.32 2003/07/29 00:03:17 tg
<entry>+07:00</entry>
<entry>Christmas (Island) Time</entry>
</row>
-<!--
- Conflicts with China Coastal Time
- <row>
- <entry>CCT</entry>
- <entry>+06:30</entry>
- <entry>Cocos Island Time</entry>
- </row>
--->
<row>
<entry>MMT</entry>
<entry>+06:30</entry>
- <entry>Myannar Time</entry>
+ <entry>Myanmar Time</entry>
</row>
<row>
<entry>ALMT</entry>
@@ -760,6 +752,21 @@ $Header: /cvsroot/pgsql/doc/src/sgml/datetime.sgml,v 2.32 2003/07/29 00:03:17 tg
<entry>West Africa Time</entry>
</row>
<row>
+ <entry>FNST</entry>
+ <entry>-01:00</entry>
+ <entry>Fernando de Noronha Summer Time</entry>
+ </row>
+ <row>
+ <entry>FNT</entry>
+ <entry>-02:00</entry>
+ <entry>Fernando de Noronha Time</entry>
+ </row>
+ <row>
+ <entry>BRST</entry>
+ <entry>-02:00</entry>
+ <entry>Brasilia Summer Time</entry>
+ </row>
+ <row>
<entry>NDT</entry>
<entry>-02:30</entry>
<entry>Newfoundland Daylight-Saving Time</entry>
@@ -775,6 +782,11 @@ $Header: /cvsroot/pgsql/doc/src/sgml/datetime.sgml,v 2.32 2003/07/29 00:03:17 tg
<entry>(unknown)</entry>
</row>
<row>
+ <entry>BRT</entry>
+ <entry>-03:00</entry>
+ <entry>Brasilia Time</entry>
+ </row>
+ <row>
<entry>NFT</entry>
<entry>-03:30</entry>
<entry>Newfoundland Standard Time</entry>
@@ -795,11 +807,6 @@ $Header: /cvsroot/pgsql/doc/src/sgml/datetime.sgml,v 2.32 2003/07/29 00:03:17 tg
<entry>Atlantic/Porto Acre Summer Time</entry>
</row>
<row>
- <entry>ACT</entry>
- <entry>-05:00</entry>
- <entry>Atlantic/Porto Acre Standard Time</entry>
- </row>
- <row>
<entry>EDT</entry>
<entry>-04:00</entry>
<entry>Eastern Daylight-Saving Time</entry>
@@ -812,6 +819,11 @@ $Header: /cvsroot/pgsql/doc/src/sgml/datetime.sgml,v 2.32 2003/07/29 00:03:17 tg
</row>
-->
<row>
+ <entry>ACT</entry>
+ <entry>-05:00</entry>
+ <entry>Atlantic/Porto Acre Standard Time</entry>
+ </row>
+ <row>
<entry>CDT</entry>
<entry>-05:00</entry>
<entry>Central Daylight-Saving Time</entry>
diff --git a/src/backend/utils/adt/datetime.c b/src/backend/utils/adt/datetime.c
index f463e80bc10..3a06d63ed3d 100644
--- a/src/backend/utils/adt/datetime.c
+++ b/src/backend/utils/adt/datetime.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/datetime.c,v 1.114 2003/08/25 22:47:34 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/datetime.c,v 1.115 2003/08/25 23:30:27 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -82,7 +82,7 @@ char *days[] = {"Sunday", "Monday", "Tuesday", "Wednesday",
* which are 30 or 45 minutes away from an even hour, most are on an hour
* boundary, and none on other boundaries.
*
- * Let's include all strings from my current zinc time zone database.
+ * Let's include all strings from my current zic time zone database.
* Not all of them are unique, or even very understandable, so we will
* leave some commented out for now.
*/
@@ -91,8 +91,8 @@ static datetkn datetktbl[] = {
{EARLY, RESERV, DTK_EARLY}, /* "-infinity" reserved for "early time" */
{"abstime", IGNORE_DTF, 0}, /* for pre-v6.1 "Invalid Abstime" */
{"acsst", DTZ, POS(42)}, /* Cent. Australia */
- {"acst", DTZ, NEG(16)}, /* Atlantic/Porto Acre */
- {"act", TZ, NEG(20)}, /* Atlantic/Porto Acre */
+ {"acst", DTZ, NEG(16)}, /* Atlantic/Porto Acre Summer Time */
+ {"act", TZ, NEG(20)}, /* Atlantic/Porto Acre Time */
{DA_D, ADBC, AD}, /* "ad" for years >= 0 */
{"adt", DTZ, NEG(12)}, /* Atlantic Daylight Time */
{"aesst", DTZ, POS(44)}, /* E. Australia */
@@ -107,9 +107,12 @@ static datetkn datetktbl[] = {
{"am", AMPM, AM},
{"amst", DTZ, POS(20)}, /* Armenia Summer Time (Yerevan) */
#if 0
- {"amst", DTZ, NEG(12)}, /* Porto Velho */
+ {"amst", DTZ, NEG(12)}, /* Amazon Summer Time (Porto Velho) */
#endif
{"amt", TZ, POS(16)}, /* Armenia Time (Yerevan) */
+#if 0
+ {"amt", TZ, NEG(16)}, /* Amazon Time (Porto Velho) */
+#endif
{"anast", DTZ, POS(52)}, /* Anadyr Summer Time (Russia) */
{"anat", TZ, POS(48)}, /* Anadyr Time (Russia) */
{"apr", MONTH, 4},
@@ -147,10 +150,8 @@ static datetkn datetktbl[] = {
#endif
{"bot", TZ, NEG(16)}, /* Bolivia Time */
{"bra", TZ, NEG(12)}, /* Brazil Time */
-#if 0
- brst
- brt
-#endif
+ {"brst", DTZ, NEG(8)}, /* Brasilia Summer Time */
+ {"brt", TZ, NEG(12)}, /* Brasilia Time */
{"bst", DTZ, POS(4)}, /* British Summer Time */
#if 0
{"bst", TZ, NEG(12)}, /* Brazil Standard Time */
@@ -226,10 +227,8 @@ static datetkn datetktbl[] = {
{"fjt", TZ, NEG(48)}, /* Fiji Time */
{"fkst", DTZ, NEG(12)}, /* Falkland Islands Summer Time */
{"fkt", TZ, NEG(8)}, /* Falkland Islands Time */
-#if 0
- fnst
- fnt
-#endif
+ {"fnst", DTZ, NEG(4)}, /* Fernando de Noronha Summer Time */
+ {"fnt", TZ, NEG(8)}, /* Fernando de Noronha Time */
{"fri", DOW, 5},
{"friday", DOW, 5},
{"fst", TZ, POS(4)}, /* French Summer Time */
@@ -324,7 +323,7 @@ static datetkn datetktbl[] = {
{"mez", TZ, POS(4)}, /* Middle Europe Zone */
{"mht", TZ, POS(48)}, /* Kwajalein */
{"mm", UNITS, DTK_MINUTE}, /* "minute" for ISO input */
- {"mmt", TZ, POS(26)}, /* Myannar Time */
+ {"mmt", TZ, POS(26)}, /* Myanmar Time */
{"mon", DOW, 1},
{"monday", DOW, 1},
#if 0