[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: date-time conversion
- From: <enigma@...>
- Date: Tue, 28 Jun 2022 10:31:14 +0100
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.