Re: dateutil and dates before today

2006-02-26 Thread dmbkiwi
I'll answer my own post. If you don't specify dtstart, it defaults to datetime.today(). Therefore, there are no instances before today. Specify dtstart as a historic date, and it works on any dates after dtstart. Wish I'd engaged brain before posting. Matt -- http://mail.python.org/mailman/li

dateutil and dates before today

2006-02-26 Thread 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: >>> rule_temp = rrule(YEARLY,bymonth=1,bymonthday=1) >>> print rule_temp.between(datetime(2006,12,1),datetime(2007,1,