bug-gawk
[Top][All Lists]
Advanced

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

Re: [bug-gawk] lint warning: mktime: at least one of the values is out o


From: Hermann Peifer
Subject: Re: [bug-gawk] lint warning: mktime: at least one of the values is out of the default range
Date: Wed, 05 Mar 2014 21:41:50 +0100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.3.0

On 2014-03-05 21:25, Aharon Robbins wrote:

The man page for mktime et. al. show the range as being 0 - 23. That
is why 24 is out of range and produces a lint warning. I think that
the standard to look to here is the ISO C standard, which I don't have
handy, not ISO 8601.

It's just a lint warning, and the C mktime() function should do the
right thing anyway.

But I'll admit that I may be standing on thin ice. :-)

As to why 60 is allowed for minutes, that's probably a mistake -
60 is allowed for seconds to accomodate leap seconds. I should
fix that.


Thanks for the quick reply and for taking care of the range for minutes.

Hermann




reply via email to

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