delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/05/15/13:31:18

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,UNPARSEABLE_RELAY
X-Spam-Check-By: sourceware.org
X-Yahoo-SMTP: jenXL62swBAWhMTL3wnej93oaS0ClBQOAKs8jbEbx_o-
Date: Sun, 15 May 2011 13:30:55 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: 1.5.25: bug in touch statement
Message-ID: <20110515173055.GA10319@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <415512198 DOT 1687271301267190457 DOT JavaMail DOT root AT zimbra6-e1 DOT priv DOT proxad DOT net> <277043603 DOT 1687291301267204451 DOT JavaMail DOT root AT zimbra6-e1 DOT priv DOT proxad DOT net> <871v1scd5c DOT fsf AT navakl084 DOT mitacad DOT com> <loom DOT 20110515T134854-740 AT post DOT gmane DOT org>
MIME-Version: 1.0
In-Reply-To: <loom.20110515T134854-740@post.gmane.org>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Sun, May 15, 2011 at 12:09:01PM +0000, Philippe wrote:
>Toby Allsopp <Toby.Allsopp <at> navman.co.nz> writes:
>> On Mon, Mar 28 2011, andre wrote:
>> > I can't do on cygwin 1.5.25 : 
>> > $ touch -t 201103270200 file 
>> > touch: format de date invalide `201103270200' 
>> >
>> > nor this equivalent : $touch -t 03270200 file
>> >
>> > It's very surprising , but ... 
>> > If I change 27 for 28 it's OK - idem if i change 2011 by 2010... 
>> 
>> I would guess this has something to do with the transition to daylight
>> saving time, which happened at 0200 on 2011-03-27.  This means that the
>> time you are specifying didn't ever exist (in your local time zone)
>> because 0200 became 0300.
>> 
>> Perhaps you can get what you want by specifying the time in UTC?
>> 
>> 
>I've found an interesting behaviour with this command on my Windows 7 64bits 
>system.  It seems that there is a bug, or the we should change the 
>documentation... But I can get around with the following date/time format:

Cygwin 1.5.25 is not going to be changed.  What you see is what you get.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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