summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorCharles.Forsyth <devnull@localhost>2008-08-02 16:24:29 +0000
committerCharles.Forsyth <devnull@localhost>2008-08-02 16:24:29 +0000
commite88c702472fc9f74a20db049cded32e48df09d5b (patch)
tree873a8b2378d1b1be3ed943fe0f23ccbb3fa8de1a /man
parent81cd740847db045fc3cf2f4c90a820f0b3c54f2a (diff)
20080802-1723
Diffstat (limited to 'man')
-rw-r--r--man/2/daytime30
1 files changed, 30 insertions, 0 deletions
diff --git a/man/2/daytime b/man/2/daytime
index 01b8a85d..04e6cda8 100644
--- a/man/2/daytime
+++ b/man/2/daytime
@@ -105,6 +105,36 @@ A missing time zone in any format is assumed to be
returns nil if
.I s
is not correctly formed.
+.PP
+When local time is first requested,
+.B daytime
+reads a table for time zone conversion from the
+.B timezone
+environment variable, if that is set,
+and otherwise from the file
+.BR /locale/timezone ,
+which is copied from one of the other files in
+.B /locale
+when the system is installed.
+The timezone table is a text file containing lines of space-separated fields.
+The first line gives the normal time zone name and its difference from GMT
+in seconds followed by an alternative time zone name (eg, for `daylight savings' or `summer' time) and
+its difference from GMT followed by a newline.
+The remainder is a list of pairs of times
+(seconds past the start of 1970, in the first time zone)
+when the alternative time zone applies.
+For example:
+.IP
+.EX
+EST -18000 EDT -14400
+ 9943200 25664400 41392800 57718800 ...
+.EE
+.PP
+Greenwich Mean Time is represented by
+.IP
+.EX
+GMT 0
+.EE
.SH SOURCE
.B /appl/lib/daytime.b
.SH SEE ALSO