X-Spam-Check-By: sourceware.org Message-ID: <46797A81.2060308@t-online.de> Date: Wed, 20 Jun 2007 21:05:37 +0200 From: Christian Franke User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2pre) Gecko/20070111 SeaMonkey/1.1 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: timestamp confusion References: <46791AAD DOT 2030900 AT byu DOT net> In-Reply-To: <46791AAD.2030900@byu.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-ID: G-lE34ZVwewnJHNjcD2RROcQOrrOQyXcjwUV3WbFqifboPRdhdo3oH X-TOI-MSGID: 04a00907-7d34-4234-a1fb-76c7c8be8e3e X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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/