diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2003-05-18 01:06:26 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2003-05-18 01:06:26 +0000 |
| commit | 6d7ff848e55bb7173d2db8550fd6617bc05be255 (patch) | |
| tree | a39db987cd628cf218a7261192bbbfd38c4c8eed /src/include | |
| parent | 6d8c774f5593f697425073c2d62eee4b4c6ac84c (diff) | |
Add code to test for unknown timezone names (following some ideas from
Ross Reedstrom, a couple months back) and to detect timezones that are
using leap-second timekeeping. The unknown-zone-name test is pretty
heuristic and ugly, but it seems better than the old behavior of just
switching to GMT given a bad name. Also make DecodePosixTimezone() a
tad more robust.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/utils/datetime.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/utils/datetime.h b/src/include/utils/datetime.h index 1f43ffbceaf..7623095f09c 100644 --- a/src/include/utils/datetime.h +++ b/src/include/utils/datetime.h @@ -9,7 +9,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: datetime.h,v 1.38 2003/04/18 01:03:42 momjian Exp $ + * $Id: datetime.h,v 1.39 2003/05/18 01:06:26 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -290,6 +290,8 @@ extern bool ClearDateCache(bool newval, bool doit, bool interactive); extern int j2day(int jd); +extern int DecodePosixTimezone(char *str, int *tzp); + extern bool CheckDateTokenTables(void); #endif /* DATETIME_H */ |
