parsing times like "5 minutes ago"?

Stefan Behnel stefan_ml at behnel.de
Tue Jul 7 09:01:07 EDT 2009


mh at pixar.com wrote:
> I'm looking for something like Tcl's [clock scan] command which parses
> human-readable time strings such as:
> 
>     % clock scan "5 minutes ago"
>     1246925569
>     % clock scan "tomorrow 12:00"
>     1246993200
>     % clock scan "today + 1 fortnight"
>     1248135628
> 
> Does any such package exist for Python?

Is this only for English times or is I18N a concern?

Stefan



More information about the Python-list mailing list