Movatterモバイル変換


[0]ホーム

URL:


Log in / Register

dateutil

rrset expansion fails with ValueError: year is out of range

Bug #1517568 reported byHenk Stubbe
This bug affects 1 person
AffectsStatusImportanceAssigned toMilestone
dateutil
New
Undecided
Unassigned

Bug Description

Given the following snippet of python code:

------------------
from datetime import datetime
from dateutil import rrule

rrset = rrule.rruleset()

rrset.rrule( rrule.rrulestr( 'FREQ=WEEKLY;BYDAY=SU', dtstart = datetime(2015, 1, 11, 15, 0) ) )

expand = list(rrset)
------------------

the rrset expansion will result in ValueError: year is out of range

Changing the rule to 'FREQ=WEEKLY;BYDAY=MO' works fine (and so do other variations).

Revision history for this message
Henk Stubbe (b-ubuftu-m) wrote:
To post a comment you mustlog in.
This report containsPublic information 
Everyone can see this information.
      Subscribing...

      Other bug subscribers

      Bug attachments

      Remote bug watches

        Bug watches keep track of this bug in other bug trackers.

        Launchpad  • Take the tour  • Read the guide  
        © 2004Canonical Ltd.  • Terms of use  • Data privacy  • Contact Launchpad Support  • Blog  • Careers  • System status  •  e76edd8 (Get the code!)

        [8]ページ先頭

        ©2009-2025 Movatter.jp