X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/365e665fe5c8d116c0b7766fd32ee916b0f7a60f..d431ae6abaf5b0814389f2adf6069915d2e983c2:/luatz/timetable.lua diff --git a/luatz/timetable.lua b/luatz/timetable.lua index c337f4a..8c44f2f 100644 --- a/luatz/timetable.lua +++ b/luatz/timetable.lua @@ -151,8 +151,8 @@ function timetable_methods:timestamp ( ) end function timetable_methods:rfc_3339 ( ) - -- %06.4g gives 3 (=6-4+1) digits after decimal - return strformat ( "%04u-%02u-%02uT%02u:%02u:%06.4g" , self:unpack ( ) ) + -- %06.3f gives 3 (=6-3) digits after decimal + return strformat ( "%04u-%02u-%02uT%02u:%02u:%06.3f" , self:unpack ( ) ) end local timetable_mt