Date: Fri, 5 Dec 1997 17:41:05 +0800 (PST) From: Orlando Andico To: Michael Bukin cc: djgpp AT delorie DOT com Subject: Re: zoneinfo In-Reply-To: <20oh2w42n3.fsf@Sky.inp.nsk.su> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On 5 Dec 1997, Michael Bukin wrote: > ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire) writes: > > > BTW what functions or objects use zoneinfo? .. I guess I should answer this to put an end to the questioning :) Zoneinfo is used for setting the localtime (time zone information). It's standard with UNIX System V so DJGPP has it too. The Zoneinfo time gives things like time zone, minutes west of DST, and so forth. This is because most UNIX machines have their clocks set to UTC or Greenwich Mean Time, and the time functions (gettimeofday(), settimeofday(), localtime(), and so forth) convert from UTC to local time using the zoneinfo information. However: you can safely zap all the zoneinfo files, and the time functions will not convert from UTC to local time (they will assume that you are in timezone GMT+0 or GMT). But that's not a major problem because most PCs' CMOS clocks are set to localtime anyway and not UTC (is YOUR machine's CMOS clock set to UTC?) You'll only run into trouble if you do something like write a Network Time Protocol client using DJGPP. The NTP servers always return a time in UTC, so you need to know your time zone to convert to local time for your own use. If you don't do anything like that, though (DOS games and apps in general aren't very picky about time internationalization) then you can get by without zoneinfo.