On Wed, Apr 18, 2007 at 03:53:10PM -0600, Bob Proulx wrote:
> Justin Pryzby wrote:
> > coreutils: date return 2005-03-01 for --date "last month"
> > http://bugs.debian.org/301972
> > 
> > The quoted manual says that -1 month might actually lie in the current
> > month.  It doesn't say that date can't subtract one from the current
> > month to give the first day of the previous month (are there even any
> > cases where the 1st doesn't exist?).
> 
> The problem the original poster reported was this:
> 
>   date
>   Tue Mar 29 14:38:04 CEST 2005
> 
>   date --date "1 month ago"
>   Tue Mar  1 14:35:31 CET 2005
Oops, you're right.  I agree that this case is adequately covered by
documentation.  For some reason I was confused while reading the bug
logs and though that date wasn't handling 'Mar 1 - 1 month'.

Justin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to