This is the mail archive of the cygwin 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: timestamp confusion


Eric Blake wrote:
According to Löwis on 6/20/2007 5:45 AM:
I'm confused that there exist at least four different (constant)
timestamps that can be displayed by 'dir /T:W', 'dir /T:A', 'dir /T:C', and
'ls -l --time=ctime'. I expected the times displayed by 'dir /T:C' and
'ls -l --time=ctime' to be the same.

Welcome to Unix emulation coupled with Windows timestamp stupidity.



... with Windows DST bug IMO the most annoying:


(C:NTFS, F:FAT)

$ cd /cygdrive/c

$ ls -l --full-time test-* | cut -c 28-
2007-01-01 12:00:00.000000000 +0100 test-jan
2007-06-01 12:00:00.000000000 +0200 test-jun

$ cmd /c dir test-* | grep test-
01.01.2007  13:00                 0 test-jan
01.06.2007  12:00                 0 test-jun


$ cd /cygdrive/f


$ ls -l --full-time test-* | cut -c 28-
2007-01-01 11:00:00.000000000 +0100 test-jan
2007-06-01 12:00:00.000000000 +0200 test-jun

$ cmd /c dir test-* | grep test-
01.01.2007  12:00                 0 test-jan
01.06.2007  12:00                 0 test-jun


Wait until next DST change and enjoy 1 hour time shifts in the opposite direction.


Cygwin's time stamps are OK on NTFS,
Windows' (cmd, explorer, msvcrt's stat()) on FAT.

Is this fixed on Vista? Bug was still present on Vista RC1.

Christian


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