This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kmk
Recipients kmk, vinay.sajip
Date 2008-01-17.20:11:59
SpamBayes Score 0.08754926
Marked as misclassified No
Message-id <1200600721.48.0.795822217035.issue1836@psf.upfronthosting.co.za>
In-reply-to
Content
downloaded from ActiveState aug 2007 Python 2.5.1.1 

# Case 2) The day to rollover is further in the interval (i.e., today is
#         day 2 (Wednesday) and rollover is on day 6 (Sunday).  Days to
#         next rollover is simply 6 - 2 - 1, or 3.
# Case 3) The day to rollover is behind us in the interval (i.e., today
#         is day 5 (Saturday) and rollover is on day 3 (Thursday).
#         Days to rollover is 6 - 5 + 3, or 4.  In this case, it's the
#         number of days left in the current week (1) plus the number
#         of days in the next week until the rollover day (3).
if when.startswith('W'):
   day = t[6] # 0 is Monday
   if day > self.dayOfWeek:
       daysToWait = (day - self.dayOfWeek) - 1
       self.rolloverAt = self.rolloverAt + (daysToWait * (60 * 60 * 24))
   if day < self.dayOfWeek:
       daysToWait = (6 - self.dayOfWeek) + day
History
Date User Action Args
2008-01-17 20:12:01kmksetspambayes_score: 0.0875493 -> 0.08754926
recipients: + kmk, vinay.sajip
2008-01-17 20:12:01kmksetspambayes_score: 0.0875493 -> 0.0875493
messageid: <1200600721.48.0.795822217035.issue1836@psf.upfronthosting.co.za>
2008-01-17 20:12:00kmklinkissue1836 messages
2008-01-17 20:11:59kmkcreate