Mega Code Archive
Categories
/
Python Tutorial
/
Buildin Module
You can print the time values using the strftime() method
import time print time.strftime("%I:%M")