diff options
Diffstat (limited to 'src/include/utils/datetime.h')
-rw-r--r-- | src/include/utils/datetime.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/include/utils/datetime.h b/src/include/utils/datetime.h new file mode 100644 index 00000000000..d780bc60a1e --- /dev/null +++ b/src/include/utils/datetime.h @@ -0,0 +1,30 @@ +/*------------------------------------------------------------------------- + * + * datetime.h-- + * Definitions for the datetime + * + * + * Copyright (c) 1994, Regents of the University of California + * + * $Id: datetime.h,v 1.1 1996/11/10 03:06:21 momjian Exp $ + * + *------------------------------------------------------------------------- + */ +#ifndef DATETIME_H +#define DATETIME_H + +/* these things look like structs, but we pass them by value so be careful + For example, passing an int -> DateADT is not portable! */ +typedef struct DateADT { + char day; + char month; + short year; +} DateADT; + +typedef struct TimeADT { + short hr; + short min; + float sec; +} TimeADT; + +#endif /* DATETIME_H */ |