delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/06/15/17:16:08

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <1DB8BA4BAC88D3118B2300508B5A552CD925F5@mail.fitlinxx.com>
From: David Bolen <db3l AT fitlinxx DOT com>
To: cygwin AT sourceware DOT cygnus DOT com
Subject: RE: TZ not working
Date: Thu, 15 Jun 2000 17:14:39 -0400
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)

Noel L Yap [yap_noel AT jpmorgan DOT com]

> I've installed cygwin-1.1.2 and now all dates are displayed as UTC.
Setting
> TZ=US/Eastern or TZ=EST or TZ=EDT doesn't work.  How are timezones
described in
> Cygwin?

I believe the same as most Unix systems.  If I recall correctly, the strings
in the TZ setting (e.g., "EST") never really have any material impact on the
time, but exist only for presentation.  It's the numeric offset embedded in
the value that is key.  So you should fine it works with "TZ=EST5" or
"TZ=EST5EDT" (the most appropriate for Eastern).

At least on my system, without any setting Cygwin is also using my local NT
setting.  So if your machine itself has the proper local time you can
probably drop TZ altogether.  But if you set it to anything (e.g., your
"EST") then it is obeyed, and in the case of "EST" there is no offset, so
it's equivalent to "EST0" which is UTC time-wise.

-- David

/-----------------------------------------------------------------------\
 \               David Bolen            \   E-mail: db3l AT fitlinxx DOT com  /
  |             FitLinxx, Inc.            \  Phone: (203) 708-5192    |
 /  860 Canal Street, Stamford, CT  06902   \  Fax: (203) 316-5150     \
\-----------------------------------------------------------------------/


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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