lua-users home
lua-l archive

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


Also possibly relevant, I was working last week on a timezone library for lua.
https://github.com/daurnimator/luatz

The relevant function would probably be `timetable.new_from_timestamp`

On 5 August 2013 19:56, Luiz Henrique de Figueiredo
<lhf@tecgraf.puc-rio.br> wrote:
>> You can trivially implement a POSIX-portable timegm()
>
> By change, I've just written a version of gmtime in Lua:
>         http://stackoverflow.com/questions/17872997/how-do-i-convert-seconds-since-epoch-to-current-date-and-time/17889530#17889530
>
> Perhaps it's useful.
>