]> granicus.if.org Git - postgresql/commitdiff
Drop internal routines for formatting time output. Use default formatter.
authorThomas G. Lockhart <lockhart@fourpalms.org>
Mon, 23 Jun 1997 14:58:51 +0000 (14:58 +0000)
committerThomas G. Lockhart <lockhart@fourpalms.org>
Mon, 23 Jun 1997 14:58:51 +0000 (14:58 +0000)
Add timezone info to abstime2tm().

src/include/utils/nabstime.h

index 400bb045c5c4b2c7505065980f638518e38a20ee..09d82724569f7b0bc6dd5fdd5882b46a47d66608 100644 (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 */