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