Drop internal routines for formatting time output. Use default formatter.

Add timezone info to abstime2tm().
This commit is contained in:
Thomas G. Lockhart 1997-06-23 14:58:51 +00:00
parent 1f4f4534a0
commit 742425447d
1 changed files with 2 additions and 11 deletions

View File

@ -6,7 +6,7 @@
*
* 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() \
((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
@ -121,9 +115,6 @@ extern bool AbsoluteTimeIsBefore(AbsoluteTime time1, AbsoluteTime time2);
extern bool AbsoluteTimeIsAfter(AbsoluteTime time1, AbsoluteTime time2);
extern AbsoluteTime tm2abstime(struct tm *tm, int tz);
extern void abstime2tm(AbsoluteTime time, int *tzp, struct tm *tm);
extern AbsoluteTime dateconv(struct tm *tm, int zone);
extern time_t qmktime(struct tm *tp);
extern void abstime2tm(AbsoluteTime time, int *tzp, struct tm *tm, char *tzn);
#endif /* NABSTIME_H */