[IronPython] Bug in time.strptime?
snaury at gmail.com
Mon Jul 17 19:42:54 CEST 2006
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:
System.DateTime.ParseExact("July 3, 2006 At 0724 GMT", "MMMM d, y 'At'
HHmm 'GMT'", System.Globalization.CultureInfo("en-US"))
On 7/5/06, Dino Viehland <dinov at exchange.microsoft.com> wrote:
> Sorry for the delay – it was a really long weekend for many of us.
> Currently our strptime implementation is mostly built by translating from
> Python formatting codes to .NET formatting codes and then calling the .NET
> Formatting APIs. There's apparently a difference here in that .NET doesn't
> allow random extra characters in its formatting strings, and CPython does.
More information about the Ironpython-users