X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/94c5a08ebdc03125f84e7fed814a1599c788a09e..e8263f466bf4da10b9577ac6029b3c2f5e1750fb:/luatz/init.lua?ds=inline diff --git a/luatz/init.lua b/luatz/init.lua index 923e4d6..1a6c835 100644 --- a/luatz/init.lua +++ b/luatz/init.lua @@ -17,6 +17,11 @@ _M.time_in = function ( tz , now ) return _M.get_tz ( tz ):localize ( now ) end +_M.now = function ( ) + local ts = _M.gettime.gettime ( ) + return _M.timetable.new_from_timestamp ( ts ) +end + --- C-like functions _M.gmtime = function ( ts )