convert time to UTC seconds since epoch
Rami Chowdhury
rami.chowdhury at gmail.com
Tue Jul 20 16:46:44 EDT 2010
On Jul 20, 2010, at 12:26 , Alexander wrote:
> Hi, list
>
> How with python standard library to convert string like 'YYYY-MM-DD
> mm:HH:SS ZONE' to seconds since epoch in UTC? ZONE may be literal time
> zone or given in explicit way like +0100.
If you have a sufficiently recent version of Python, have you considered time.strptime: http://docs.python.org/library/time.html#time.strptime ?
HTH,
Rami
-------------
Rami Chowdhury
"Never assume malice when stupidity will suffice." -- Hanlon's Razor
408-597-7068 (US) / 07875-841-046 (UK) / 0189-245544 (BD)
More information about the Python-list
mailing list