mirror of
https://frontier.innolan.net/rainlance/amiga-tz.git
synced 2025-11-21 09:21:05 +00:00
electronic mail addresses purged
SCCS-file: localtime.c SCCS-SID: 7.97
This commit is contained in:
committed by
Paul Eggert
parent
a60bff9bbf
commit
5ddac80db9
14
localtime.c
14
localtime.c
@ -1,6 +1,6 @@
|
||||
/*
|
||||
** This file is in the public domain, so clarified as of
|
||||
** 1996-06-05 by Arthur David Olson (arthur_david_olson@nih.gov).
|
||||
** 1996-06-05 by Arthur David Olson.
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@ -10,9 +10,8 @@ static char elsieid[] = "%W%";
|
||||
#endif /* !defined lint */
|
||||
|
||||
/*
|
||||
** Leap second handling from Bradley White (bww@k.gp.cs.cmu.edu).
|
||||
** POSIX-style TZ environment variable handling from Guy Harris
|
||||
** (guy@auspex.com).
|
||||
** Leap second handling from Bradley White.
|
||||
** POSIX-style TZ environment variable handling from Guy Harris.
|
||||
*/
|
||||
|
||||
/*LINTLIBRARY*/
|
||||
@ -208,7 +207,7 @@ char * tzname[2] = {
|
||||
** Except for the strftime function, these functions [asctime,
|
||||
** ctime, gmtime, localtime] return values in one of two static
|
||||
** objects: a broken-down time structure and an array of char.
|
||||
** Thanks to Paul Eggert (eggert@twinsun.com) for noting this.
|
||||
** Thanks to Paul Eggert for noting this.
|
||||
*/
|
||||
|
||||
static struct tm tm;
|
||||
@ -1411,7 +1410,6 @@ char * buf;
|
||||
** Adapted from code provided by Robert Elz, who writes:
|
||||
** The "best" way to do mktime I think is based on an idea of Bob
|
||||
** Kridle's (so its said...) from a long time ago.
|
||||
** [kridle@xinet.com as of 1996-01-16.]
|
||||
** It does a binary search of the time_t space. Since time_t's are
|
||||
** just 32 bits, its a max of 32 iterations (even at 64 bits it
|
||||
** would still be very reasonable).
|
||||
@ -1422,7 +1420,7 @@ char * buf;
|
||||
#endif /* !defined WRONG */
|
||||
|
||||
/*
|
||||
** Simplified normalize logic courtesy Paul Eggert (eggert@twinsun.com).
|
||||
** Simplified normalize logic courtesy Paul Eggert.
|
||||
*/
|
||||
|
||||
static int
|
||||
@ -1722,7 +1720,7 @@ const long offset;
|
||||
t = time2(tmp, funcp, offset, &okay);
|
||||
#ifdef PCTS
|
||||
/*
|
||||
** PCTS code courtesy Grant Sullivan (grant@osf.org).
|
||||
** PCTS code courtesy Grant Sullivan.
|
||||
*/
|
||||
if (okay)
|
||||
return t;
|
||||
|
||||
Reference in New Issue
Block a user