[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: os.time epoch on Windows
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 4 May 2009 13:02:09 -0300
> akakima33 wrote:
>> Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio
>>> print(os.date("%c", 1))
>> 12/31/69 19:00:01
>>>
>>
>> Microsoft Windows XP [version 5.1.2600]
>> French Edition
>>
>> !?
>
> Maybe it's using the French Revolutionary calendar ;-)
>
> Enrico
It is using the local time. To get UTC, add a '!' to the format:
> print(os.date("!%c", 1))
Thu Jan 1 00:00:01 1970
-- Roberto