Created
October 25, 2019 20:37
-
-
Save barrachri/0989bd1935291955ba4aee166743b19b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import datetime as dt | |
ISO_8601_UTC = "%Y-%m-%dT%H:%M:%S.%fZ" | |
previous_date = dt.datetime.strptime("2018-09-06T13:34:30.168Z", ISO_8601_UTC) | |
dt.datetime.utcnow() - previous_date <= dt.timedelta(minutes=10) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment