1 /* Generated automatically by the YAZ ASN.1 Compiler 0.3 */
2 /* Module-H UserInfoFormat-dateTime */
8 #include <yaz/z-core.h>
13 typedef struct Z_DateTime Z_DateTime;
14 YAZ_EXPORT int z_DateTime (ODR o, Z_DateTime **p, int opt, const char *name);
16 typedef struct Z_DateMonthAndDay Z_DateMonthAndDay;
17 YAZ_EXPORT int z_DateMonthAndDay (ODR o, Z_DateMonthAndDay **p, int opt, const char *name);
19 typedef struct Z_DateQuarter Z_DateQuarter;
20 YAZ_EXPORT int z_DateQuarter (ODR o, Z_DateQuarter **p, int opt, const char *name);
22 typedef struct Z_DateSeason Z_DateSeason;
23 YAZ_EXPORT int z_DateSeason (ODR o, Z_DateSeason **p, int opt, const char *name);
25 typedef struct Z_Era Z_Era;
26 YAZ_EXPORT int z_Era (ODR o, Z_Era **p, int opt, const char *name);
28 typedef struct Z_DateFlags Z_DateFlags;
29 YAZ_EXPORT int z_DateFlags (ODR o, Z_DateFlags **p, int opt, const char *name);
31 typedef struct Z_Date Z_Date;
32 YAZ_EXPORT int z_Date (ODR o, Z_Date **p, int opt, const char *name);
34 typedef struct Z_Time Z_Time;
35 YAZ_EXPORT int z_Time (ODR o, Z_Time **p, int opt, const char *name);
43 Z_Date *date; /* OPT */
44 Z_Time *time; /* OPT */
47 struct Z_DateMonthAndDay {
52 struct Z_DateQuarter {
59 #define Z_DateQuarter_first 1
60 #define Z_DateQuarter_second 2
61 #define Z_DateQuarter_third 3
62 #define Z_DateQuarter_fourth 4
73 #define Z_DateSeason_winter 1
74 #define Z_DateSeason_spring 2
75 #define Z_DateSeason_summer 3
76 #define Z_DateSeason_autumn 4
86 #define Z_Era_decade 1
87 #define Z_Era_century 2
88 #define Z_Era_millennium 3
93 Odr_null *circa; /* OPT */
101 Z_DateMonthAndDay *monthAndDay;
104 Z_DateQuarter *quarter;
105 Z_DateSeason *season;
106 #define Z_Date_monthAndDay 1
107 #define Z_Date_julianDay 2
108 #define Z_Date_weekNumber 3
109 #define Z_Date_quarter 4
110 #define Z_Date_season 5
112 Z_DateFlags *flags; /* OPT */
117 int *minute; /* OPT */
118 int *second; /* OPT */
119 Z_IntUnit *partOfSecond; /* OPT */
125 #define Z_Time_local 1
127 #define Z_Time_utcOffset 3