postgresql/src/include/utils/tzparser.h

38 lines
993 B
C
Raw Normal View History

/*-------------------------------------------------------------------------
*
* tzparser.h
* Timezone offset file parsing definitions.
*
* Portions Copyright (c) 1996-2014, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
2010-09-20 22:08:53 +02:00
* src/include/utils/tzparser.h
*
*-------------------------------------------------------------------------
*/
#ifndef TZPARSER_H
#define TZPARSER_H
#include "utils/datetime.h"
/*
* The result of parsing a timezone configuration file is an array of
* these structs, in order by abbrev. We export this because datetime.c
* needs it.
*/
typedef struct tzEntry
{
/* the actual data: TZ abbrev (downcased), offset, DST flag */
2006-10-04 02:30:14 +02:00
char *abbrev;
int offset; /* in seconds from UTC */
bool is_dst;
/* source information (for error messages) */
2006-10-04 02:30:14 +02:00
int lineno;
const char *filename;
} tzEntry;
extern TimeZoneAbbrevTable *load_tzoffsets(const char *filename);
2006-10-04 02:30:14 +02:00
#endif /* TZPARSER_H */