help parsing this

Discussion in 'Python' started by a, Aug 14, 2006.

  1. a

    a Guest

    mx.DateTime.RangeError at /podcasts
    Failed to parse "31 Apr 2006 20:19:00 -0400": day out of range: 31
    Python /usr/lib/python2.4/site-packages/mx/DateTime/Parser.py in
    DateTimeFromString, line 608

    how to parse this date
    thanks
     
    a, Aug 14, 2006
    #1
    1. Advertising

  2. "a" <> wrote in message
    news:...
    > mx.DateTime.RangeError at /podcasts
    > Failed to parse "31 Apr 2006 20:19:00 -0400": day out of range: 31
    > Python /usr/lib/python2.4/site-packages/mx/DateTime/Parser.py in
    > DateTimeFromString, line 608
    >
    > how to parse this date
    > thanks


    There isn't a 31st of April.
     
    Richard Brodie, Aug 14, 2006
    #2
    1. Advertising

  3. "a" wrote:
    > mx.DateTime.RangeError at /podcasts
    > Failed to parse "31 Apr 2006 20:19:00 -0400": day out of range: 31
    > Python /usr/lib/python2.4/site-packages/mx/DateTime/Parser.py in
    > DateTimeFromString, line 608
    >
    > how to parse this date


    parse it into what? there is no such thing as "April 31st".

    </F>
     
    Fredrik Lundh, Aug 14, 2006
    #3
  4. a

    Tim Chase Guest

    >> how to parse this date
    >
    > parse it into what? there is no such thing as "April 31st".


    I think somebody's chain is getting pulled...thus the right thing
    to do is to wrap around and return "April 1st" ;-)

    -Loof Lirpa
     
    Tim Chase, Aug 14, 2006
    #4
  5. a

    Steve Holden Guest

    a wrote:
    > mx.DateTime.RangeError at /podcasts
    > Failed to parse "31 Apr 2006 20:19:00 -0400": day out of range: 31
    > Python /usr/lib/python2.4/site-packages/mx/DateTime/Parser.py in
    > DateTimeFromString, line 608
    >
    > how to parse this date
    > thanks
    >

    """
    30 days hath September
    APRIL, June and November
    All the rest have 31
    Excepting February alone
    That has 29 days clear
    And 29 in each leap year
    """

    regards
    Steve
    --
    Steve Holden +44 150 684 7255 +1 800 494 3119
    Holden Web LLC/Ltd http://www.holdenweb.com
    Skype: holdenweb http://holdenweb.blogspot.com
    Recent Ramblings http://del.icio.us/steve.holden
     
    Steve Holden, Aug 14, 2006
    #5
  6. a

    Paul McGuire Guest

    "a" <> wrote in message
    news:...
    > mx.DateTime.RangeError at /podcasts
    > Failed to parse "31 Apr 2006 20:19:00 -0400": day out of range: 31
    > Python /usr/lib/python2.4/site-packages/mx/DateTime/Parser.py in
    > DateTimeFromString, line 608
    >
    > how to parse this date
    > thanks
    >


    Looks like it was parsed properly. What do you suppose that silly
    mx.DateTime.RangeError exception was all about?

    -- Paul
     
    Paul McGuire, Aug 15, 2006
    #6
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. GIMME
    Replies:
    2
    Views:
    930
    GIMME
    Feb 11, 2004
  2. Naren
    Replies:
    0
    Views:
    611
    Naren
    May 11, 2004
  3. Christopher Diggins
    Replies:
    0
    Views:
    626
    Christopher Diggins
    Jul 9, 2007
  4. Christopher Diggins
    Replies:
    0
    Views:
    455
    Christopher Diggins
    Jul 9, 2007
  5. John Levine
    Replies:
    0
    Views:
    763
    John Levine
    Feb 2, 2012
Loading...

Share This Page