Created
March 2, 2018 12:12
-
-
Save CubexX/1a5a4a8e3b8fbaae30923335730437d8 to your computer and use it in GitHub Desktop.
Get today timestamp at 00:00 (start of the day)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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