delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/09/29/23:49:21

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Message-ID: <433CB5B4.7080506@byu.net>
Date: Thu, 29 Sep 2005 21:49:08 -0600
From: Eric Blake <ebb9 AT byu DOT net>
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
MIME-Version: 1.0
To: "Pagano, Tom - Portland, OR" <tom DOT pagano AT por DOT usda DOT gov>
CC: cygwin AT cygwin DOT com
Subject: Re: date function: how many days in october are there?
References: <3C46C4ED0F9B944690547357EB7F1C0FF430 AT COFORTCOL2S304 DOT agwest DOT one DOT usda DOT gov>
In-Reply-To: <3C46C4ED0F9B944690547357EB7F1C0FF430@COFORTCOL2S304.agwest.one.usda.gov>
X-IsSubscribed: yes

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Pagano, Tom - Portland, OR on 9/29/2005 9:41 PM:
> I've noticed that the date function does something strange trying to access October 31st in a statement like 
>  
> $ date -d "1970-10-01 +1 month -1 day"
> as opposed to something like 
> $ date -d "1970-11-01 -1 day"
> which (I think??) should be functionally equivalent. The actual results of the 2nd are obviously preferrable to the 1st... but I do note something squirrly going on with the hours in both (daylight savings time?) 

Indeed it is daylight savings.  date has no cygwin-specific patches, but
the brand new coreutils 5.90 has been released upstream that has some
patches in date parsing.  Once I can get that packaged, you may want to
rerun your tests - if the bug is still present at that time, then report
it upstream.

- --
Life is short - so eat dessert first!

Eric Blake             ebb9 AT byu DOT net
volunteer cygwin coreutils maintainer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDPLW084KuGfSFAYARAso1AJ4ia3ivMy0zj2hSJFqHJp6wK3ZwSgCg0wKD
2rBt20yYxwrSG1sxLaqbTHU=
=0bxZ
-----END PGP SIGNATURE-----

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