bug-sh-utils
[Top][All Lists]
Advanced

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

Re: Possible bug in 'date'


From: Jessica Blank
Subject: Re: Possible bug in 'date'
Date: Mon, 31 Dec 2001 11:00:06 -0600 (CST)

Incidentally-- if you leave off the "+1300" and use a 12-hour
(non-military) time (e.g. 7:54:39 PM), it DOES work. Watch this:

TWU:/home/fox/mailpull# date --date="Mon, 1 Oct 2001 7:54:39 PM"
Mon Oct  1 19:54:39 CDT 2001
TWU:/home/fox/mailpull# date --date="Mon, 1 Oct 2001 7:54:39 PM +1300"
date: invalid date `Mon, 1 Oct 2001 7:54:39 PM +1300'

So, it works when you use non-military time. It works when you use RFC-822
style numeric timezones... but not both.

On Mon, 31 Dec 2001, Jessica Blank wrote:

> This works:
>
> TWU:/home/fox/mailpull# date --date="Mon, 1 Oct 2001 19:54:39 +1300"
> Mon Oct  1 01:54:39 CDT 2001
>
> ...but this does not:
>
> TWU:/home/fox/mailpull# date --date="Mon, 1 Oct 2001 7:54:39 PM +1300"
> date: invalid date `Mon, 1 Oct 2001 7:54:39 PM +1300'
>
>
>
> =========================================
>   J e s s i c a    L e a h    B l a n k
> -----------------------------------------
>   Programmer * Unix Sysadmin * Web Geek
>  address@hidden * http://www.JessL.org/
> =========================================
>
>
>


=========================================
  J e s s i c a    L e a h    B l a n k
-----------------------------------------
  Programmer * Unix Sysadmin * Web Geek
 address@hidden * http://www.JessL.org/
=========================================





reply via email to

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