mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
Drop internal routines for formatting time output. Use default formatter.
Add timezone info to abstime2tm().
This commit is contained in:
@ -6,7 +6,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright (c) 1994, Regents of the University of California
|
* Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* $Id: nabstime.h,v 1.7 1997/04/02 18:32:39 scrappy Exp $
|
* $Id: nabstime.h,v 1.8 1997/06/23 14:58:51 thomas Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -93,12 +93,6 @@ extern AbsoluteTime GetCurrentAbsoluteTime(void);
|
|||||||
#define getSystemTime() \
|
#define getSystemTime() \
|
||||||
((time_t) (time(0l)))
|
((time_t) (time(0l)))
|
||||||
|
|
||||||
#define SECS(n) ((time_t)(n))
|
|
||||||
#define MINS(n) ((time_t)(n) * SECS(60))
|
|
||||||
#define HOURS(n) ((time_t)(n) * MINS(60)) /* 3600 secs */
|
|
||||||
#define DAYS(n) ((time_t)(n) * HOURS(24)) /* 86400 secs */
|
|
||||||
/* months and years are not constant length, must be specially dealt with */
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* nabstime.c prototypes
|
* nabstime.c prototypes
|
||||||
@ -121,9 +115,6 @@ extern bool AbsoluteTimeIsBefore(AbsoluteTime time1, AbsoluteTime time2);
|
|||||||
extern bool AbsoluteTimeIsAfter(AbsoluteTime time1, AbsoluteTime time2);
|
extern bool AbsoluteTimeIsAfter(AbsoluteTime time1, AbsoluteTime time2);
|
||||||
|
|
||||||
extern AbsoluteTime tm2abstime(struct tm *tm, int tz);
|
extern AbsoluteTime tm2abstime(struct tm *tm, int tz);
|
||||||
extern void abstime2tm(AbsoluteTime time, int *tzp, struct tm *tm);
|
extern void abstime2tm(AbsoluteTime time, int *tzp, struct tm *tm, char *tzn);
|
||||||
|
|
||||||
extern AbsoluteTime dateconv(struct tm *tm, int zone);
|
|
||||||
extern time_t qmktime(struct tm *tp);
|
|
||||||
|
|
||||||
#endif /* NABSTIME_H */
|
#endif /* NABSTIME_H */
|
||||||
|
Reference in New Issue
Block a user