lua-users home
lua-l archive

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


> 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