lua-users home
lua-l archive

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


Brent Tucker <brent.anthony.tucker@gmail.com> wrote:
(28/06/2022 00:56)

>Hi,
>
>Do Lua users have a preferred library for date/time conversion? I'm looking
>for a conversion from ISO 8601 to Unix epoch timestamp .
>
>Example: "2019-01-30T13:06:36.769273-07:00"
>
>Thanks
>Brent

You could raid one I wrote for the LuaTools system I recently announced.

http://www.lostgallifreyan.net/Software/LuaTools/LuaTools.htm

It's in C code, and is guaranteed to work for any 'UNIX second' in the Gregorian calendar, past or future.