strptime - dates formatted differently on different computers

Greg Donald gdonald at gmail.com
Wed Dec 12 00:29:12 EST 2012


On Tue, Dec 11, 2012 at 11:05 PM, Steven D'Aprano
<steve+comp.lang.python at pearwood.info> wrote:
> The question is not "will it parse", but will it parse CORRECTLY?
>
> What will it parse 11/12/10 as, and how do you know that is the intended
> date?

If it were me I'd look at more of the source dates I was tasked with
parsing and dial it in using the appropriate dayfirst, yearfirst, etc.
options.



-- 
Greg Donald



More information about the Python-list mailing list