Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <3D41BC77.305363CC@noaa.gov> Date: Fri, 26 Jul 2002 17:17:43 -0400 From: "Arthur Taylor" Organization: DOC/NOAA/NWS - National Weather Service X-Sender: "Arthur.Taylor" X-Accept-Language: en MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Date Time Stamps? References: <3D3DDCD1 DOT D8239BE2 AT noaa DOT gov> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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/