2 * This file is part of the YAZ toolkit:
3 * Copyright (c) 1998, Index Data.
4 * See the file LICENSE for details.
5 * Sebastian Hammer, Adam Dickmeiss
7 * Contribution by Ronald van Der Meer (RVDM):
8 * Databasix Information Systems B.V., Utrecht, The Netherlands.
11 * Revision 1.1 1998-02-10 15:31:52 adam
12 * Implemented date and time structure. Changed the Update Extended
26 typedef struct Z_MonthAndDay
29 int *day; /* OPTIONAL */
32 typedef struct Z_Quarter
35 #define Z_Quarter_first 0
36 #define Z_Quarter_second 1
37 #define Z_Quarter_third 2
38 #define Z_Quarter_fourth 3
48 typedef struct Z_Season
51 #define Z_Season_winter 0
52 #define Z_Season_spring 1
53 #define Z_Season_summer 2
54 #define Z_Season_autumn 3
64 typedef struct Z_PartOfYear
67 #define Z_PartOfYear_monthAndDay 0
68 #define Z_PartOfYear_julianDay 1
69 #define Z_PartOfYear_weekNumber 2
70 #define Z_PartOfYear_quarter 3
71 #define Z_PartOfYear_season 4
74 Z_MonthAndDay *monthAndDay;
85 #define Z_Era_decade 0
86 #define Z_Era_century 1
87 #define Z_Era_millennium 2
96 typedef struct Z_DateFlags
98 Odr_null *circa; /* OPTIONAL */
99 Z_Era *era; /* OPTIONAL */
102 typedef struct Z_Date
105 Z_PartOfYear *partOfYear; /* OPTIONAL */
106 Z_DateFlags *flags; /* OPTIONAL */
109 typedef struct Z_Zone
112 #define Z_Zone_local 0
114 #define Z_Zone_utcOffset 2
123 typedef struct Z_Time
126 int *minute; /* OPTIONAL */
127 int *second; /* OPTIONAL */
128 Z_IntUnit *partOfSecond; /* OPTIONAL */
129 Z_Zone *zone; /* OPTIONAL */
132 typedef struct Z_DateTime
134 Z_Date *z3950Date; /* OPTIONAL */
135 Z_Time *z3950Time; /* OPTIONAL */
138 YAZ_EXPORT int z_DateTime(ODR o, Z_DateTime **p, int opt);