What is the module/method used to get the current time?
If you need current time as a time object:
time
>>> import datetime >>> now = datetime.datetime.now() >>> datetime.time(now.hour, now.minute, now.second) datetime.time(11, 23, 44)