]> git.madduck.net Git - etc/awesome.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

luatz/tzinfo: Give tt_info objects a __tostring
authordaurnimator <quae@daurnimator.com>
Sun, 24 Nov 2013 10:43:02 +0000 (05:43 -0500)
committerdaurnimator <quae@daurnimator.com>
Sun, 24 Nov 2013 10:43:02 +0000 (05:43 -0500)
luatz/tzinfo.lua

index 77d0656c2ef05515d47c255e8b29e5bc2f4a4f2c..5b7c0c0cc6875c791f855c2aad22a384a935db4d 100644 (file)
@@ -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