make-w32
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Clock Skew problem under Windows


From: Eli Zaretskii
Subject: Re: Clock Skew problem under Windows
Date: Thu, 05 Jun 2008 22:24:25 +0300

> Date: Thu, 5 Jun 2008 11:26:07 -0700 (PDT)
> From: EricDeb <address@hidden>
> Cc: 
> 
> date +'%H:%M:%S:%N' >> a.txt
> ls --full-time a.txt
> 
> Cygwin reports a time stamp of "13:29:56.000000000". 
> Inside of the text file I see this "13:29:54:703488000".
> 
> OK, so a.txt was created 1.3 seconds after it was... created. Huh? That's
> odd.

No, that's perfectly normal: the file a.txt is created by the shell
when it processes the redirection operator >> on the command line;
this happens _before_ `date' is launched.  So the sign of the
difference between the two times is what I'd expect.

Note that "ls --full-time" shows the time the file was last written
to, not its creation time, btw.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]