Skip to content

Instantly share code, notes, and snippets.

Created October 25, 2021 14:15
What would you like to do?
# author: adge denkers @adge_denkers
# date: 2021-10-25
# file:
# ------------------------------------------------------------------------------
import datetime
import pytz
def get_timestamp():
eastern = pytz.timezone('US/Eastern')
now = eastern.localize(
ts = now.strftime("%Y-%m-%d %H:%M:%S%z")
return ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment