Subject: Re: Date Time Stamps?
From: "Arthur Taylor" <[email-masked]>
To: [email-masked]
Date: Fri, 26 Jul 2002 17:17:43 -0400

Just in case you all were curious, I did figure it out.

Turns out that Win 2k behaves as if the environment variable TZ=EDT4 (shows all
files using EDT even if the file was created in EST) (Note: Windows changes its
behavior to EST5 when appropriate).

Cygwin, on the other hand, behaves as a reasonable UNIX machine with TZ=EST5EDT
(shows files which were created in EST using EST, and shows files created in EDT
using EDT) (Note: Cygwin / UNIX never have to change their behavior).

Unfortunately this results in having "ls -l" and "dir" appear to return 2
different times, for a certain set of files.  One solution: Add a variable
TZ=EDT4 using:
"control panel"->system->advanced->Environment Variables"

Problem: one needs to change TZ twice a year.

Question 1: Is there a tool in CYGWIN to change environment variables without
going to "control panel"?

Question 2: Is there any way to make Win 2k behave as a TZ=EST5EDT machine?

Thanks
Arthur

Arthur Taylor wrote:

> This is a weird one...
>
> I have a file in:
> d:\cygwin\home\tayloraa\etc\newRock\labels.doc
>
> According to an MS-command prompt its date is:
> 3/12/2002 10:06p
>
> According to a "ls -l" from a cygwin bash shell its date is:
> Mar 12 21:06

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/