This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 1.7.9 : date command fails for year 1900


On 01/24/2012 06:51 PM, Buchbinder, Barry (NIH/NIAID) [E] wrote:
$ date -d '500 years ago'

Now use cal to get a calendar of that month.  Do days of the week
correspond?

Another experiment on your SL box:

$ date -d 1752-09-10

This should give an error message, since (in Britain and its
Dependencies) this date did not exist.  Does it?

$ date -d 1900-02-29

This date didn't exist in the Gregorian calendar.  (No leap year in years
divisible by 100 unless they are also divisible by 400.)  Did date give an
error?


Only the last one produces invalid date on RedHat 6.0. As you suggested, the dates produced don't appear in the corresponding months of cal.

--
Tim Prince


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]