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"))
On 7/5/06, Dino Viehland <[EMAIL PROTECTED]> 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.
_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com