diff --git a/util.py b/util.py new file mode 100644 index 0000000..57c33f0 --- /dev/null +++ b/util.py @@ -0,0 +1,7 @@ +from datetime import datetime, timezone + + +def now(): + timestamp = datetime.now(timezone.utc).replace(microsecond=0) + formatted_timestamp = timestamp.strftime("%Y-%m-%dT%H:%M:%SZ") + return formatted_timestamp