[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Does os.time change with dst OR Confused about os.time and os.date
- From: Daurnimator <quae@...>
- Date: Mon, 5 Aug 2013 20:07:56 -0400
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.
>