lua-users home
lua-l archive

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

On 13 May 2013 23:22, Brad Jorsch <> wrote:
> Someone recently made a correction to our copy of the Lua manual for
> Scribunto,[1] changing the range of values for 'sec' from 0-61 to
> 0-59. Which is incorrect, considering that leap seconds do exist, but
> that only gives a range of 0-60. How would return a value of
> 61 for the seconds? Or is that an error in the Lua manual?
>  [1]:
> gets its values from a `tm` struct filled by either gmtime or
localtime as appropriate. According to [1], the tm_secs member is in
the range 0-61, but [2] says it's in the range 0-60.

It was hard to find a copy of the C89 standard, but the copy at [3]
(section 4.12.1) says it's 0-60; as does the C99(?) standard at [4]
(section 7.23.1).

So it looks like the range should be 0-60.