timedelta match with datetime python code example
Example 1: how to check if its later than python
datetime.datetime.now().hour == 8
Example 2: python datetime compare
date1 = datetime.date(2014, 3, 2)
date2 = datetime.date(2013, 8, 1)
was_date1_before = date1 < date2