Re: Bug in the date command?


Subject: Re: Bug in the date command?
From: Matthew Schumacher (schu@schu.net)
Date: Thu Jul 31 2003 - 08:51:29 AKDT


Ok,

I see why it is doing it:

[schu@percy schu]$ date --date="1 month ago"
Tue Jul 1 08:49:07 AKDT 2003

Because last month has 30 days and it is subtracting that from the
current date, but it is still not what I thought I would get.

Matthew Schumacher wrote:
>
> Correct me if I'm wrong but isn't last month the 6th month of the year?
>
> [schu@percy schu]$ date
> Thu Jul 31 08:37:49 AKDT 2003
> [schu@percy schu]$ date --date='1 month ago' +%m
> 07
> [schu@percy schu]$
>
>
> What gives?
>
> ---------
> To unsubscribe, send email to <aklug-request@aklug.org>
> with 'unsubscribe' in the message body.

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.



This archive was generated by hypermail 2a23 : Thu Jul 31 2003 - 08:51:34 AKDT