lua-users home
lua-l archive

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


On Wed, Apr 6, 2011 at 15:57, Luiz Henrique de Figueiredo
<lhf@tecgraf.puc-rio.br> wrote:
>> But actually, in its C counterpart, `struct tm`, `tm_isdst` it is a
>> tribool.

>> But maybe it is not too late to change this in 5.2?

> It's already like that: isdst is not set if tm_isdst is negative.
> So tribool means true, false, and nil. :-)

Yes, you're right.

I should have looked at getboolfield() definition.

Sorry for the noise. :-(

But maybe you can clarify os.date() definition in manual? It is not
obvious that this feature is supported. (Not sure about the wording
though.)

Alexander.