Date: Sat, 4 Oct 1997 13:22:39 -0400 (EDT) Message-Id: <199710041722.NAA13634@delorie.com> From: DJ Delorie To: jim DOT chapman AT sympatico DOT ca CC: djgpp AT delorie DOT com In-reply-to: <3435D616.3565@sympatico.ca> (message from Jim Chapman on Fri, 03 Oct 1997 22:37:26 -0700) Subject: Re: date Precedence: bulk > When I execute the command date with the TZ environment variable set to > est5edt I assume it should give me the system clock time less 4 hours. > It does figure out that it is now EDT but it gives me the system clock > time. If I use the command date -u it still gives me the system clock > time. Is there something else I need to set or is my assumption wrong? > If my assumption is wrong why do I have all those zoneinfo files? DJGPP uses TZ to figure out what your system clock is set by. Thus, no matter what you set TZ to, your system clock should match localtime() and not gmtime() (unless you're GMT+0). The zoneinfo files are used to try to figure out how much your system clock is off by, so that it can figure out what UCT really is for you. This is done so that when you unzip or untar a file, you get the correct timestamps.