Is there a Python function...
Ruud de Rooij
* at spam.ruud.org
Mon Aug 7 13:39:44 EDT 2000
"Paul Sheer" <psheer at obsidian.co.za> writes:
> ....to convert an ascii formatted date into integer time in seconds since 1970?
>
> for example:
> input: Jan 12 1999 20h23
> output: 916165380
int(time.mktime(time.strptime(d, '%b %d %Y %Hh%M')))
According to the documentation strptime is not available on all
platforms.
- Ruud de Rooij.
--
ruud de rooij | *@spam.ruud.org | http://ruud.org
More information about the Python-list
mailing list