X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/94c5a08ebdc03125f84e7fed814a1599c788a09e..38cb1f49b0e0be7018298018bb69e8fa3f785ad9:/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 )