mirror of
https://github.com/postgres/postgres.git
synced 2025-05-29 16:21:20 +03:00
Add parser category for "DST" Daylight Savings Time qualifier on time zones.
This commit is contained in:
parent
3cef45d330
commit
9af564ada6
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright (c) 1994, Regents of the University of California
|
* Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* $Id: dt.h,v 1.10 1997/06/03 14:07:24 thomas Exp $
|
* $Id: dt.h,v 1.11 1997/06/20 17:15:00 thomas Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -111,19 +111,20 @@ typedef struct {
|
|||||||
#define TIME 4
|
#define TIME 4
|
||||||
#define TZ 5
|
#define TZ 5
|
||||||
#define DTZ 6
|
#define DTZ 6
|
||||||
#define IGNORE 7
|
#define DTZMOD 7
|
||||||
#define AMPM 8
|
#define IGNORE 8
|
||||||
#define HOUR 9
|
#define AMPM 9
|
||||||
#define MINUTE 10
|
#define HOUR 10
|
||||||
#define SECOND 11
|
#define MINUTE 11
|
||||||
#define DOY 12
|
#define SECOND 12
|
||||||
#define DOW 13
|
#define DOY 13
|
||||||
#define UNITS 14
|
#define DOW 14
|
||||||
#define ADBC 15
|
#define UNITS 15
|
||||||
|
#define ADBC 16
|
||||||
/* these are only for relative dates */
|
/* these are only for relative dates */
|
||||||
#define ABS_BEFORE 14
|
#define AGO 17
|
||||||
#define ABS_AFTER 15
|
#define ABS_BEFORE 18
|
||||||
#define AGO 16
|
#define ABS_AFTER 19
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Token field definitions for time parsing and decoding.
|
* Token field definitions for time parsing and decoding.
|
||||||
@ -131,6 +132,7 @@ typedef struct {
|
|||||||
* At the moment, that means keep them within [-127,127].
|
* At the moment, that means keep them within [-127,127].
|
||||||
* These are also used for bit masks in DecodeDateDelta()
|
* These are also used for bit masks in DecodeDateDelta()
|
||||||
* so actually restrict them to within [0,31] for now.
|
* so actually restrict them to within [0,31] for now.
|
||||||
|
* - tgl 97/06/19
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define DTK_NUMBER 0
|
#define DTK_NUMBER 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user