mirror of https://github.com/mkerrisk/man-pages
stime.2, strftime.3, tzset.3, zic.8: GMT -> UTC (where appropriate)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
6f60ee752d
commit
750d65df7d
|
@ -46,7 +46,7 @@ _SVID_SOURCE
|
|||
.BR stime ()
|
||||
sets the system's idea of the time and date.
|
||||
Time, pointed
|
||||
to by \fIt\fP, is measured in seconds from 00:00:00 GMT January 1, 1970.
|
||||
to by \fIt\fP, is measured in seconds from 00:00:00 UTC January 1, 1970.
|
||||
.BR stime ()
|
||||
may only be executed by the superuser.
|
||||
.SH "RETURN VALUE"
|
||||
|
|
|
@ -242,7 +242,7 @@ The year as a decimal number without a century (range 00 to 99).
|
|||
The year as a decimal number including the century.
|
||||
.TP
|
||||
.B %z
|
||||
The timezone as hour offset from GMT.
|
||||
The timezone as hour offset from UTC.
|
||||
Required to emit RFC\ 822-conformant dates
|
||||
(using "%a,\ %d\ %b\ %Y\ %H:%M:%S\ %z"). (GNU)
|
||||
.TP
|
||||
|
|
|
@ -67,7 +67,7 @@ environment variable.
|
|||
This function is automatically called by the
|
||||
other time conversion functions that depend on the timezone.
|
||||
In a System-V-like environment, it will also set the variables \fItimezone\fP
|
||||
(seconds West of GMT) and \fIdaylight\fP (to 0 if this timezone does not
|
||||
(seconds West of UTC) and \fIdaylight\fP (to 0 if this timezone does not
|
||||
have any daylight saving time rules, or to nonzero if there is a time during
|
||||
the year when daylight saving time applies).
|
||||
.PP
|
||||
|
@ -223,7 +223,7 @@ It has been obsolete for many years but is required by SUSv2.
|
|||
.BI "char *timezone(" zone ", " dst )
|
||||
that returned the
|
||||
name of the timezone corresponding to its first argument (minutes
|
||||
West of GMT).
|
||||
West of UTC).
|
||||
If the second argument was 0, the standard name was used,
|
||||
otherwise the daylight saving time version.
|
||||
.SH "SEE ALSO"
|
||||
|
|
|
@ -260,8 +260,8 @@ A zone line has the form
|
|||
.sp
|
||||
.nf
|
||||
.ti +.5i
|
||||
.ta \w'Zone\0\0'u +\w'Australia/Adelaide\0\0'u +\w'GMTOFF\0\0'u +\w'RULES/SAVE\0\0'u +\w'FORMAT\0\0'u
|
||||
Zone NAME GMTOFF RULES/SAVE FORMAT [UNTIL]
|
||||
.ta \w'Zone\0\0'u +\w'Australia/Adelaide\0\0'u +\w'UTCOFF\0\0'u +\w'RULES/SAVE\0\0'u +\w'FORMAT\0\0'u
|
||||
Zone NAME UTCOFF RULES/SAVE FORMAT [UNTIL]
|
||||
.sp
|
||||
For example:
|
||||
.sp
|
||||
|
@ -270,13 +270,13 @@ Zone Australia/Adelaide 9:30 Aus CST 1971 Oct 31 2:00
|
|||
.sp
|
||||
.fi
|
||||
The fields that make up a zone line are:
|
||||
.TP "\w'GMTOFF'u"
|
||||
.TP "\w'UTCOFF'u"
|
||||
.B NAME
|
||||
The name of the timezone.
|
||||
This is the name used in creating the time conversion information file for the
|
||||
zone.
|
||||
.TP
|
||||
.B GMTOFF
|
||||
.B UTCOFF
|
||||
The amount of time to add to UTC to get standard time in this zone.
|
||||
This field has the same format as the
|
||||
.B AT
|
||||
|
|
Loading…
Reference in New Issue