Skip to content

Instantly share code, notes, and snippets.

@CubexX
Created March 2, 2018 12:12
Show Gist options
  • Save CubexX/1a5a4a8e3b8fbaae30923335730437d8 to your computer and use it in GitHub Desktop.
Save CubexX/1a5a4a8e3b8fbaae30923335730437d8 to your computer and use it in GitHub Desktop.
Get today timestamp at 00:00 (start of the day)
def get_today_start():
t = datetime.today()
return int(datetime(t.year, t.month, t.day, 0).timestamp())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment