Re: Clock Skew problem under Windows
Eli Zaretskii <[email protected]>
| Newsgroups | gmane.comp.gnu.make.windows |
|---|---|
| Message-ID | <[email protected]> |
> Date: Thu, 5 Jun 2008 11:26:07 -0700 (PDT) > From: EricDeb <[email protected]> > 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.