Intelligent strptime?

Aahz Maruch aahz at netcom.com
Wed Nov 10 12:16:51 EST 1999


In article <19991110171256.A5196 at optiplex.palga.uucp>,
Gerrit Holl  <gerrit at nl.linux.org> wrote:
>
>Does there exist an intelligent strptime? "26/11/99", for example, can _only_
>mean the 26th November of this year, and the chance that "14:11:12" means
>14 november 1912 is very small. Is there a module/function that guesses the
>format? There isn't doubt very often, only for 12/11/99, US is 11 december,
>Europe is 12 November (isn't it?).

I don't have my docs handy, but I think rfc822 and/or mxDateTime might
have what you want.
--
> I wrote:
> > a slightly hairer design issue is what combinations
> > of pattern and string the new 're' will handle.
> 




More information about the Python-list mailing list