Added two additional cases for date matches: <=, >=

svn: r14101
This commit is contained in:
Doug Blank 2010-01-20 13:37:24 +00:00
parent f06acae4b1
commit c689013025

View File

@ -992,12 +992,18 @@ class Date(object):
elif comparison == "<": elif comparison == "<":
# If any < any # If any < any
return self_start < other_stop return self_start < other_stop
elif comparison == "<=":
# If any < any
return self_start <= other_stop
elif comparison == "<<": elif comparison == "<<":
# If all < all # If all < all
return self_stop < other_start return self_stop < other_start
elif comparison == ">": elif comparison == ">":
# If any > any # If any > any
return self_stop > other_start return self_stop > other_start
elif comparison == ">=":
# If any > any
return self_stop >= other_start
elif comparison == ">>": elif comparison == ">>":
# If all > all # If all > all
return self_start > other_stop return self_start > other_stop