From e88c702472fc9f74a20db049cded32e48df09d5b Mon Sep 17 00:00:00 2001 From: "Charles.Forsyth" Date: Sat, 2 Aug 2008 16:24:29 +0000 Subject: 20080802-1723 --- man/2/daytime | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'man/2/daytime') 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 -- cgit v1.2.3