From f2fc0b840b9b1ce58e8c9ca0a858f613bb3bd8be Mon Sep 17 00:00:00 2001 From: daurnimator Date: Mon, 18 Aug 2014 11:48:12 -0400 Subject: [PATCH] luatz/timetable: Move require call to top of file --- luatz/timetable.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5