X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/e8263f466bf4da10b9577ac6029b3c2f5e1750fb..50ea021da26a347c4d82c722835927e5ef6baf86:/luatz/timetable.lua?ds=inline diff --git a/luatz/timetable.lua b/luatz/timetable.lua index 783d60b..5c234b6 100644 --- a/luatz/timetable.lua +++ b/luatz/timetable.lua @@ -181,6 +181,7 @@ end function timetable_methods:rfc_3339 ( ) local year , month , day , hour , min , sec = self:unpack ( ) local sec , msec = borrow ( sec , 0 , 1000 ) + msec = math.floor(msec) return strformat ( "%04u-%02u-%02uT%02u:%02u:%02d.%03d" , year , month , day , hour , min , sec , msec ) end