bug-coreutils
[Top][All Lists]
Advanced

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

Re: date in core utils


From: Rene de Zwart
Subject: Re: date in core utils
Date: Thu, 31 Mar 2005 20:29:21 +0200
User-agent: Mutt/1.5.8i

On Thu, Mar 31, 2005 at 10:32:42AM +0200, Rene de Zwart wrote:
> On Wed, Mar 30, 2005 at 11:43:24PM -0500, Paul Eggert wrote:
> > Rene de Zwart <address@hidden> writes:
> > 
> > > I debbuged date from coreutils 5.3.0 and got
> > >   get_date (&when, datestr, NULL);
> > >   with datestr="19370701"
> > >  returned invalid date
> > >
> > >  So it is at a different level than date.
> > 
> > But get_date is shipped as part of coreutils 5.3.0, so if it is
> > a bug in get_date then it is a bug in coreutils 5.3.0.
> > 
> > Can you investigate why get_date is failing on your host?
> > (It doesn't fail on mine.)
> Well I did and and I came out to the lines lib/getdate.c
> 1302
> 
>       tm0 = tm;
>       Start = mktime (&tm);
posted in gentoo form and got this answer!
        Works here with /etc/localtime pointing to
        /usr/share/zoneinfo/Europe/Berlin and an unset TZ variable. But:

        # LC_ALL=C TZ=/usr/share/zoneinfo/Europe/Amsterdam date --date 
"19370701"
        Wed Jun 30 23:59:32 NST 1937

        I guessed your timezone from your mail address.

        Time warp? Temporal discontinuity? Leap seconds?

        Probably the time in the Netherlands was adjusted from one standard to
        another standard in 1937.

        Googling for "Europe/Amsterdam 1937" gives e.g.
        <http://nssdcftp.gsfc.nasa.gov/usr/share/lib/zoneinfo/europe>,
        which has:

        # Zone  NAME            GMTOFF  RULES   FORMAT  [UNTIL]
        Zone Europe/Amsterdam   0:19:28 -       LMT     1892 May
                                0:19:28 Neth    %s      1937 Jul
                                0:20    Neth    %s      1940 May 16 0:40
                                1:00    M-Eur   MET%s   1945 Apr  2 2:00
                                1:00    Neth    MET%s   1977
                                1:00    EU      MET%s





reply via email to

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