[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: os.time() vs. isdst
- From: Alexander Gladysh <agladysh@...>
- Date: Wed, 6 Apr 2011 16:10:45 +0400
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.