diff options
Diffstat (limited to 'src/include/utils/datetime.h')
| -rw-r--r-- | src/include/utils/datetime.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/include/utils/datetime.h b/src/include/utils/datetime.h index d780bc60a1..584f96074c 100644 --- a/src/include/utils/datetime.h +++ b/src/include/utils/datetime.h @@ -6,13 +6,21 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: datetime.h,v 1.1 1996/11/10 03:06:21 momjian Exp $ + * $Id: datetime.h,v 1.2 1997/03/14 23:33:21 scrappy Exp $ * *------------------------------------------------------------------------- */ #ifndef DATETIME_H #define DATETIME_H +#include "utils/dt.h" + +#if USE_NEW_DATE + +typedef int32 DateADT; + +#else + /* 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 { @@ -21,10 +29,20 @@ typedef struct DateADT { short year; } DateADT; +#endif + +#if USE_NEW_TIME + +typedef float8 TimeADT; + +#else + typedef struct TimeADT { short hr; short min; float sec; } TimeADT; +#endif + #endif /* DATETIME_H */ |
