From e0dbd486c7005f901811529ef5b82f5bd95211ea Mon Sep 17 00:00:00 2001 From: daurnimator Date: Tue, 23 Jul 2013 18:53:47 -0400 Subject: [PATCH 1/1] src/timetable: Add equality metamethod --- src/timetable.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/timetable.lua b/src/timetable.lua index 5fa7205..9b78576 100644 --- a/src/timetable.lua +++ b/src/timetable.lua @@ -136,6 +136,9 @@ end local timetable_mt = { __index = timetable_methods ; + __eq = function ( a , b ) + return a:timestamp() < b:timestamp() + end ; } local function cast_timetable ( tm ) -- 2.39.5