Python: Afficher l’heure en format Integer

Author:

 date
{filelink=16875}

 
import time
 
now = time.time()
tm = time.localtime(now)
 
print "date->", now
 
print now
print time.mktime(tm)
 
"""
date-> 1345893254.0
1345893254.0
1345893254.0
 
"""