X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/365e665fe5c8d116c0b7766fd32ee916b0f7a60f..4c43e7e40e584ca682dd0d36efca12a4882f220e:/luatz/timetable.lua?ds=sidebyside 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