1997-11-06 05:38:25 +08:00
|
|
|
#ifndef DATETIME_FUNCTIONS_H
|
|
|
|
#define DATETIME_FUNCTIONS_H
|
|
|
|
|
1998-02-26 12:46:47 +08:00
|
|
|
TimeADT *hhmm_in(char *str);
|
|
|
|
char *hhmm_out(TimeADT *time);
|
|
|
|
TimeADT *hhmm(TimeADT *time);
|
|
|
|
TimeADT *time_difference(TimeADT *time1, TimeADT *time2);
|
|
|
|
int4 time_hours(TimeADT *time);
|
|
|
|
int4 time_minutes(TimeADT *time);
|
|
|
|
int4 time_seconds(TimeADT *time);
|
|
|
|
int4 as_minutes(TimeADT *time);
|
|
|
|
int4 as_seconds(TimeADT *time);
|
|
|
|
int4 date_day(DateADT val);
|
|
|
|
int4 date_month(DateADT val);
|
|
|
|
int4 date_year(DateADT val);
|
|
|
|
TimeADT *currenttime(void);
|
|
|
|
DateADT currentdate(void);
|
1997-11-06 05:38:25 +08:00
|
|
|
|
|
|
|
#endif
|