[Top][All Lists]

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

v 2.0 date

From: Norm Wood
Subject: v 2.0 date
Date: Mon, 23 Oct 2000 11:32:55 -0600
User-agent: Mutt/1.2.2i

Using the date program in version 2.0 of the shell

   date -d "Oct 30, 1999" +%j

gives a result of 303, which is correct.

Omitting the comma in the datestring:

    date -d "Oct 30 1999" +%j

gives a result of 304, which is off by a day.

The problem seems to be that getdate.y parses "Oct 30 1999" as
"month day hhmm" instead of "month day year".  

I've added text just after line 327 of getdate.y which seems to
cure the problem.  Here's a diff from the original getdate.y

Norm Wood
     CIRES/NOAA Climate Monitoring and Diagnostics Lab
         Solar and Thermal Atmospheric Radiation Group

     address@hidden         CIRES
     phone:  303-497-6666        Campus Box 449
       fax:  303-497-5590        Boulder, CO 80309-0449

Attachment: get_date.patch
Description: Text document

reply via email to

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