X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0	tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_NONE
X-Spam-Check-By: sourceware.org
Message-ID: <4F1A07F6.8010509@overbearing.org>
Date: Sat, 21 Jan 2012 01:33:58 +0100
From: cygwin <cygwin@overbearing.org>
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:9.0) Gecko/20111222 Thunderbird/9.0.1
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: 1.7.9 : date command fails for year 1900
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
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

Hi All,

I'm seeing a problem with my setup where the date command fails in an 
odd way:

this is what it does:
$ date -d '1 January  1900'
date: invalid date `1 January  1900'

same thing on a linux box:
$ date -d '1 January  1900'
Mon Jan  1 00:00:00 PMT 1900

any dates after 1901 seem to work OK:
$ date -d '1 January  1902'
Wed Jan  1 00:00:00 PMT 1902

but nothing works before then:


$ date -d 'today - 150 years'
date: invalid date `today - 150 years'

$ date -d 'today - 100 years'
Sun Jan 21 01:33:27 WET 1912

this is the info for the date command:

$ date --version
date (GNU coreutils) 8.14
Packaged by Cygwin (8.14-1)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
<http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by David MacKenzie.

Where should I start debugging?

Thanks in advance,
Dave


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

