From c689013025a176fc39aa6dbf48b1a85e537036d8 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Wed, 20 Jan 2010 13:37:24 +0000 Subject: [PATCH] Added two additional cases for date matches: <=, >= svn: r14101 --- src/gen/lib/date.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gen/lib/date.py b/src/gen/lib/date.py index 0721c1194..3202f65fd 100644 --- a/src/gen/lib/date.py +++ b/src/gen/lib/date.py @@ -992,12 +992,18 @@ class Date(object): elif comparison == "<": # If any < any return self_start < other_stop + elif comparison == "<=": + # If any < any + return self_start <= other_stop elif comparison == "<<": # If all < all return self_stop < other_start elif comparison == ">": # If any > any return self_stop > other_start + elif comparison == ">=": + # If any > any + return self_stop >= other_start elif comparison == ">>": # If all > all return self_start > other_stop