Awesome, thanks for the information - I wasn't sure how to deal w/ the unrecognized characters before, that'll save me the search.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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 <[EMAIL PROTECTED]> 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")) _______________________________________________ users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com _______________________________________________ users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
