[IronPython] Bug in time.strptime?
dinov at exchange.microsoft.com
Mon Jul 17 10:50:29 PDT 2006
Awesome, thanks for the information - I wasn't sure how to deal w/ the unrecognized characters before, that'll save me the search.
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Snaury
Sent: Monday, July 17, 2006 10:44 AM
To: Discussion of IronPython
Subject: Re: [IronPython] Bug in time.strptime?
On 7/17/06, Snaury <snaury at gmail.com> wrote:
> Hi Dino,
> It seems that you just need to use DateTime.ParseExact and wrap those
> random characters in single quotes and then it parses successfully. At
> least I did it in the clr way and it worked:
> import System
> System.DateTime.ParseExact("July 3, 2006 At 0724 GMT", "MMMM d, y 'At'
> HHmm 'GMT'", System.Globalization.CultureInfo("en-US"))
Oh, that should read:
System.DateTime.ParseExact("July 3, 2006 At 0724 GMT", "MMMM d, yyyy 'At' HHmm 'GMT'", System.Globalization.CultureInfo("en-US"))
users mailing list
users at lists.ironpython.com
More information about the users