[Edu-sig] Get arbitrary time in seconds

Dustin Mitchell dustin@cs.uchicago.edu
Tue, 25 Sep 2001 16:28:17 -0500 (CDT)


On Tue, 25 Sep 2001, Titu Kim wrote:

> How can i get the gmt time in second given the
> parameters year, month, day, hour, minute and seconds
> of the day only. I found that mktime can do this but
> it need three more tuples. How can i get around with
> this? Thanks a lot.

Leave them at zero:

>>> time.mktime((2001,9,24,7,15,5,0,0,0))
1001333705.0

Dustin

-- 

  )O(