import datetime current_time = datetime.datetime.now() seconds = current_time.second minutes = current_time.minute
from datetime import datetime dt = datetime.today() # Get timezone naive now seconds = dt.timestamp()