This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to sync cygwin time with windows system time?


On Sat, 10 May 2003, Corinna Vinschen wrote:

> On Sat, May 10, 2003 at 11:25:48AM +0200, news@garydjones.mailshell.com wrote:
> > Corinna Vinschen <corinna-cygwin@cygwin.com> wrote:
> > > On Sat, May 10, 2003 at 02:51:35AM -0700, jklcom wrote:
> > >> How do set the time in cygwin to sync up with windows system time?
> > >
> > > Uelp?  Cygwin time *is* Windows time.
> >
> > Actually, no, its not (necessarily), sorry Corinna. Of course, it depends on
> > $TZ, so if that environment variable is incorrectly set then the time will be
> > 'wrong'. Setting $TZ correctly, or not setting it at all, fixes this. (What
> > happens to programs which expect TZ if it is not explicitly set?)
>
> Sic.  This has nothing to do with the clock...
>
> > $ 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"
> Corinna

Gary, FYI, this format is described in detail on the "tzset" manpage.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Knowledge is an unending adventure at the edge of uncertainty.
  -- Leto II


--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]