From: daurnimator Date: Wed, 24 Jul 2013 15:55:16 +0000 (-0400) Subject: src/timetable: __eq was actually __lt; add __eq. X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/a809e6fc8a079b8db520aebdb5567d7cf55c1559 src/timetable: __eq was actually __lt; add __eq. --- diff --git a/src/timetable.lua b/src/timetable.lua index e7f2816..882d8fd 100644 --- a/src/timetable.lua +++ b/src/timetable.lua @@ -151,6 +151,9 @@ local timetable_mt = { __index = timetable_methods ; __tostring = timetable_methods.rfc_3339 ; __eq = function ( a , b ) + return a:timestamp() == b:timestamp() + end ; + __lt = function ( a , b ) return a:timestamp() < b:timestamp() end ; }