lua-users home
lua-l archive

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


On Tue, Mar 28, 2017 at 5:38 PM, Javier Mr <> wrote:
> The conclusion is that os.time expects a table in local time and not in utc.
> A os.utime or similar would be quite useful.

You can change the code I sent you, zap the test loop, add return
utc_time, put it into utc_time.lua and monkey-path os y doing
os.utc_time=require "utc_time".

Francisco Olarte.