From b7645320a1905587b16a8b2035481bbd45788175 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Sun, 24 Nov 2013 05:43:02 -0500 Subject: [PATCH] luatz/tzinfo: Give tt_info objects a __tostring --- luatz/tzinfo.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/luatz/tzinfo.lua b/luatz/tzinfo.lua index 77d0656..5b7c0c0 100644 --- a/luatz/tzinfo.lua +++ b/luatz/tzinfo.lua @@ -5,6 +5,9 @@ local tz_info_mt = { __index = tz_info_methods ; } local tt_info_mt = { + __tostring = function ( self ) + return string.format ( "tt_info:%s=%d" , self.abbr , self.gmtoff ) + end ; } -- Binary search -- 2.39.5