Created
July 19, 2021 05:22
-
-
Save Mulperi/bea7610203c6caad82e9b72dc0adcb6e to your computer and use it in GitHub Desktop.
Create 30 utc timestamps
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
import datetime | |
timestamps = [] | |
for i in range(30): | |
new_date = datetime.datetime(2021, 7, i+1, 12, 00, 00, 000, | |
tzinfo=datetime.timezone.utc) | |
timestamp = int(datetime.datetime.timestamp(new_date) * 1000) | |
timestamps.append(timestamp) | |
print(timestamps) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment