delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/05/10/13:39:48

Message-Id: <200305101739.h4AHdlY22702@delorie.com>
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
X-Path: not-for-mail
From: news AT garydjones DOT mailshell DOT com
Subject: Re: How to sync cygwin time with windows system time?
X-Newsgroups: gmane.os.cygwin
References: <001301c316d9$be5d84a0$0301a8c0 AT E888> <20030510072514 DOT GB19367 AT cygbert DOT vinschen DOT de> <200305101012 DOT h4AAC2H24542 AT mx1 DOT redhat DOT com> <20030510105917 DOT GF19367 AT cygbert DOT vinschen DOT de>
Organization:
To: cygwin AT cygwin DOT com
X-Gate: Hamster/1.3.23.185 NewsToMail-Gate
Date: Sat, 10 May 2003 14:03:13 +0200

Corinna Vinschen <corinna-cygwin AT cygwin DOT com> wrote:
> On Sat, May 10, 2003 at 11:25:48AM +0200, news AT garydjones DOT mailshell DOT com wrote:

> Sic.  This has nothing to do with the clock...

Heh? Nobody said it was. All we know from the OP is that time in Cygwin does
not appear to be the same as that in Windows. Like you said, that can't in
reality be the case, time machines excepted, therefore it must be a case of
how the data is being interpreted. Cygwin, afaik, will base its
interpretation of the date and time data on the TZ variable, and the only
way I can see that the resulting time would not match Windows is that TZ is
incorrectly set (in which case the time in Cygwin would be different).

>> $ export TZ=WEDT
>>
>> $ date
>> Sat May 10 09:58:02 GMT 2003
>>
>> (so presumably WEDT is not a correct setting for TZ, though that's kind of
>> confusing given the first result in this sequence)
>
> Try export TZ="WEST-1WEDT-2,M3.5.0/2,M10.5.0/3"

Yeah. Prolly. I would prefer to read about the thing somewhere to understand
what it was though :) Ta anyway. Hmm. Wait, maybe I can work this out. First
the two offsets from GMT with labels, then when the clocks change?

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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