[news.software.b] The time 23: 59:60

barrett@Daisy.EE.UND.AC.ZA (Alan P Barrett) (06/19/91)

In article <1991Jun17.185953.26845@zoo.toronto.edu>,
henry@zoo.toronto.edu (Henry Spencer) writes:
>> <6313530@mkist.ruhr.sub.org> unparsable Date: `10 Jun 91 18:60:58 MEST'
> The first is okay except for that "60".

Right.  However, on days when a leap second is inserted, the time
23:59:60 is valid.  I didn't spend long checking, but a brief glance at
C News getdate.y suggested that it will reject such times.

--apb
Alan Barrett, Dept. of Electronic Eng., Univ. of Natal, Durban, South Africa
RFC822: barrett@ee.und.ac.za             Bang: m2xenix!quagga!undeed!barrett

henry@zoo.toronto.edu (Henry Spencer) (06/19/91)

In article <1991Jun19.062205.27097@Daisy.EE.UND.AC.ZA> barrett@Daisy.EE.UND.AC.ZA (Alan P Barrett) writes:
>23:59:60 is valid.  I didn't spend long checking, but a brief glance at
>C News getdate.y suggested that it will reject such times.

getdate.y was picked up from B News, and is obsolete and slowly being phased
out.  The thing to look at is the date routines in our libc directory.  It
looks to me like they don't like leap seconds; this was an oversight and
will be corrected.
-- 
"We're thinking about upgrading from    | Henry Spencer @ U of Toronto Zoology
SunOS 4.1.1 to SunOS 3.5."              |  henry@zoo.toronto.edu  utzoo!henry