mirror of
https://github.com/postgres/postgres.git
synced 2026-02-23 18:04:41 -05:00
30 lines
708 B
C
30 lines
708 B
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* 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 */
|