tzset.3: Document behavior when TZ filespec omits the colon

If the TZ filespec omits the leading colon, glibc will parse
it for any valid format, i.e., it will still work.

STEPS TO REPRODUCE:
TZ=:Europe/Kiev date
Sun Jan 18 20:19:13 EET 2015
TZ=Europe/Kiev date
Sun Jan 18 20:19:20 EET 2015

Signed-off-by: J William Piggott <elseifthen@gmx.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
JWP 2015-01-18 15:10:18 -05:00 committed by Michael Kerrisk
parent 4e00a0b860
commit 025812041f
1 changed files with 2 additions and 1 deletions

View File

@ -176,7 +176,8 @@ If \fIfilespec\fP is given, it specifies another
.BR tzfile (5)-format
file to read the timezone information from.
If \fIfilespec\fP does not begin with a \(aq/\(aq, the file specification is
relative to the system timezone directory.
relative to the system timezone directory. If the colon is omitted each
of the above three \fBTZ\fP formats will be tried in order.
.PP
Here's an example, once more for New Zealand:
.nf