import datetime a = datetime.date(2012,1,31) # YYYY, MM, DD b = datetime.date(2009,10,31) # YYYY, MM, DD print a == b print a > b print a < b
Output:
False True False
import datetime a = datetime.date(2012,1,31) # YYYY, MM, DD b = datetime.date(2009,10,31) # YYYY, MM, DD print a == b print a > b print a < b
False True False
0 comments:
Post a Comment