UTC equivalent of time.mktime() ?

Graham Ashton gashton at cmedltd.com
Wed Apr 17 12:58:00 EDT 2002


On Wed, 2002-04-17 at 17:11, Mark McEahern wrote:
> Why not just use the mxDateTime library and just do something like this:
> 
> 	mx.DateTime.utc().ticks()

I appreciate that I could (and thanks for the suggestion), but does this
really mean that via the standard library there is no easy way to
convert "1 Jan 1970" to 0 (i.e. string to seconds since epoch)?

Perhaps I should inspect the mxDateTime code...

-- 
Graham Ashton






More information about the Python-list mailing list