delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/07/26/17:18:15

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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" <Arthur DOT Taylor AT noaa DOT gov>
Organization: DOC/NOAA/NWS - National Weather Service
X-Sender: "Arthur.Taylor" <Arthur DOT Taylor AT hqmail DOT nws DOT noaa DOT gov>
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>

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019