[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #18921] Date Issues

From: Eric Blake
Subject: [bug #18921] Date Issues
Date: Thu, 01 Feb 2007 03:06:12 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20061204 Firefox/ Mnenhy/

Update of bug #18921 (project coreutils):

                  Status:                    None => Invalid                
             Open/Closed:                    Open => Closed                 


Follow-up Comment #1:

This is the correct database, but it is not a bug, just an artifact of the
screwy way that humans track time.  The GNU date documentation is explicit
that -1 month operates only on the month field without regards to how many
days are in a month, so '31 July -1 month' = '31 June'.  But June does not
have 31 days, we have to guess whether June 30 or July 1 was intended.  No
matter which way we guess, someone will complain we guessed wrong.  So you
are stuck with the current behavior; if all you need is the month changed,
then calculate 'July -1 month' independently of the day (and consider a day
around the 15th of the month).  A similar fuzzy boundary exists around
daylight savings boundaries.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]