D
dmbkiwi
I'm using the dateutil module from http://labix.org/python-dateutil.
Am I right in thinking that the rrules module doesn't acknowledge days
before today?
An example of the issue:
Basically, it doesn't seem to acknowledge any dates before today. Is
this right?
Cheers
Matt
Am I right in thinking that the rrules module doesn't acknowledge days
before today?
An example of the issue:
2007-01-01 19:21:29rule_temp = rrule(YEARLY,bymonth=1,bymonthday=1)
print rule_temp.between(datetime(2006,12,1),datetime(2007,1,4),True) [datetime.datetime(2007, 1, 1, 19, 21, 29)]
print rule_temp.between(datetime(2005,12,1),datetime(2006,1,4),True) []
print rule_temp.between(datetime(2005,12,1),datetime(2007,1,4),True) [datetime.datetime(2007, 1, 1, 19, 21, 29)]
print rule_temp.before(datetime.today(),True) None
print rule_temp.after(datetime.today(),True)
Basically, it doesn't seem to acknowledge any dates before today. Is
this right?
Cheers
Matt