delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/06/20/15:06:10

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 DOT Franke AT t-online DOT 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 AT cygwin DOT com
Subject: Re: timestamp confusion
References: <D95927B47773164A8149F384F079E56F0F6ACA AT volta DOT lust DOT de> <46791AAD DOT 2030900 AT byu DOT net>
In-Reply-To: <46791AAD.2030900@byu.net>
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: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019