Skip to content

Instantly share code, notes, and snippets.

@Mulperi
Created July 19, 2021 05:22
Show Gist options
  • Save Mulperi/bea7610203c6caad82e9b72dc0adcb6e to your computer and use it in GitHub Desktop.
Save Mulperi/bea7610203c6caad82e9b72dc0adcb6e to your computer and use it in GitHub Desktop.
Create 30 utc timestamps
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