[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: os.time() vs. isdst
- From: Norbert Kiesel <nkiesel@...>
- Date: Wed, 06 Apr 2011 14:07:07 -0700
On Wed, 2011-04-06 at 20:57 +0100, Jeff Smith wrote:
> While we are on the subject of os.date os.time etc. Can someone
> volunteer to check this for me please ?
>
> PiL chapter 22 states
>
> temp = os.date("*t", 906000490)
> produces the table
> {year = 1998, month = 9, day = 16, yday = 259, wday = 4,
> hour = 23, min = 48, sec = 10, isdst = false}
>
>
> Is 906000490 the correct number here ? I cant get it to give me the
> table numbers stated below it ?
I get these numbers with
% TZ=UTC+3 lua -e 'for k,v in pairs(os.date("*t", 906000490)) do
print(k,v) end'
>
> It could be me misunderstanding something, or is it a mistake ?
>
> Regards Geoff
>
> PS Do I win a prize for spotting a 13 year old mistake ? :)
I'm afraid you have to try a bit harder :-)
</nk>