X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/2d6b75a796ed12acc8aecf427d2eda1ba9b53b7d..ba4cf5bdfc3e75c0366771a1cdda676e9ccbeeb3:/luatz/timetable.lua?ds=sidebyside diff --git a/luatz/timetable.lua b/luatz/timetable.lua index 318bb63..6a39a13 100644 --- a/luatz/timetable.lua +++ b/luatz/timetable.lua @@ -1,3 +1,4 @@ +local strftime = require "luatz.strftime".strftime local strformat = string.format local floor = math.floor local function idiv ( n , d ) @@ -143,7 +144,6 @@ function timetable_methods:rfc_3339 ( ) return strformat ( "%04u-%02u-%02uT%02u:%02u:%06.3f" , self:unpack ( ) ) end -local strftime = require "luatz.strftime".strftime function timetable_methods:strftime ( format_string ) return strftime ( format_string , self ) end