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 <Christian.Franke@t-online.de>
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@cygwin.com
Subject: Re: timestamp confusion
References: <D95927B47773164A8149F384F079E56F0F6ACA@volta.lust.de> <46791AAD.2030900@byu.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@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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/

