Skip to content

Commit 7424254

Browse files
author
Thomas G. Lockhart
committed
Drop internal routines for formatting time output. Use default formatter.
Add timezone info to abstime2tm().
1 parent 1f4f453 commit 7424254

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

src/include/utils/nabstime.h

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: nabstime.h,v 1.7 1997/04/02 18:32:39 scrappy Exp $
9+
* $Id: nabstime.h,v 1.8 1997/06/23 14:58:51 thomas Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -93,12 +93,6 @@ extern AbsoluteTime GetCurrentAbsoluteTime(void);
9393
#define getSystemTime() \
9494
((time_t) (time(0l)))
9595

96-
#define SECS(n) ((time_t)(n))
97-
#define MINS(n) ((time_t)(n) * SECS(60))
98-
#define HOURS(n) ((time_t)(n) * MINS(60)) /* 3600 secs */
99-
#define DAYS(n) ((time_t)(n) * HOURS(24)) /* 86400 secs */
100-
/* months and years are not constant length, must be specially dealt with */
101-
10296

10397
/*
10498
* nabstime.c prototypes
@@ -121,9 +115,6 @@ extern bool AbsoluteTimeIsBefore(AbsoluteTime time1, AbsoluteTime time2);
121115
extern bool AbsoluteTimeIsAfter(AbsoluteTime time1, AbsoluteTime time2);
122116

123117
extern AbsoluteTime tm2abstime(struct tm *tm, int tz);
124-
extern void abstime2tm(AbsoluteTime time, int *tzp, struct tm *tm);
125-
126-
extern AbsoluteTime dateconv(struct tm *tm, int zone);
127-
extern time_t qmktime(struct tm *tp);
118+
extern void abstime2tm(AbsoluteTime time, int *tzp, struct tm *tm, char *tzn);
128119

129120
#endif /* NABSTIME_H */

0 commit comments

Comments
 (0)