Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7424254

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

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
#definegetSystemTime() \
9494
((time_t) (time(0l)))
9595

96-
#defineSECS(n)((time_t)(n))
97-
#defineMINS(n)((time_t)(n) * SECS(60))
98-
#defineHOURS(n)((time_t)(n) * MINS(60))/* 3600 secs */
99-
#defineDAYS(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
externboolAbsoluteTimeIsAfter(AbsoluteTimetime1,AbsoluteTimetime2);
122116

123117
externAbsoluteTimetm2abstime(structtm*tm,inttz);
124-
externvoidabstime2tm(AbsoluteTimetime,int*tzp,structtm*tm);
125-
126-
externAbsoluteTimedateconv(structtm*tm,intzone);
127-
externtime_tqmktime(structtm*tp);
118+
externvoidabstime2tm(AbsoluteTimetime,int*tzp,structtm*tm,char*tzn);
128119

129120
#endif/* NABSTIME_H */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp