Added two additional cases for date matches: <=, >=
svn: r14101
This commit is contained in:
parent
f06acae4b1
commit
c689013025
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user