1
0
mirror of https://frontier.innolan.net/rainlance/amiga-tz.git synced 2025-11-23 15:50:22 +00:00

new and improved

SCCS-file: newctime.3
SCCS-SID: 2.6
This commit is contained in:
Arthur David Olson
1986-11-24 18:46:56 -05:00
committed by Paul Eggert
parent c02902b1ab
commit 9675381620

View File

@ -58,9 +58,13 @@ is treated as if it were a call of the form
.B
settz("localtime")
.PP
.I Localtime
has the same argument and return value as
the older version described in
.IR Ctime ,
.IR localtime ,
.IR gmtime ,
and
.I asctime
have the same arguments and return values as
the seasoned versions described in
.IR ctime (3) .
If
.I localtime
@ -74,19 +78,27 @@ with the value returned by
.B
getenv("TZ").
.I Localtime
sets the appropriate element of
sets the
.BR tm_isdst 'th
element of
.B tzname
to a pointer to an
ASCII string that's the time zone abbreviation to be used with
.IR localtime 's
return value.
.PP
.I Ctime
returns
.IR "asctime(localtime(*clock))" .
.PP
.I Zonetime
converts the argument time using the argument zone.
converts the argument time using the argument zone,
without affecting the zone used in future
.I localtime
calls.
.PP
.I Settz
simply calls
.I tzset
with a
.B NULL
pointer.
.SH DIAGNOSTICS
.I Settz
returns zero if all seems well; it returns negative one otherwise