[IronPython] Bug in time.strptime?

Snaury snaury at gmail.com
Mon Jul 17 10:43:39 PDT 2006


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:

import System
System.DateTime.ParseExact("July 3, 2006 At 0724 GMT", "MMMM d, yyyy
'At' HHmm 'GMT'", System.Globalization.CultureInfo("en-US"))


More information about the users mailing list