1 /*-------------------------------------------------------------------------
4 * Timezone offset file parsing definitions.
6 * Portions Copyright (c) 1996-2014, PostgreSQL Global Development Group
7 * Portions Copyright (c) 1994, Regents of the University of California
9 * src/include/utils/tzparser.h
11 *-------------------------------------------------------------------------
16 #include "utils/datetime.h"
19 * The result of parsing a timezone configuration file is an array of
20 * these structs, in order by abbrev. We export this because datetime.c
23 typedef struct tzEntry
25 /* the actual data: TZ abbrev (downcased), offset, DST flag */
27 int offset; /* in seconds from UTC */
29 /* source information (for error messages) */
35 extern TimeZoneAbbrevTable *load_tzoffsets(const char *filename);
37 #endif /* TZPARSER_H */