I\'ve search a bunch on StackExchange for a solution but nothing does quite what I need. In JavaScript, I\'m using the following to calculate UTC time since Jan 1st 1970:>
from datetime import datetime, timezone def utc_now(): return datetime.utcnow().replace(tzinfo=timezone.utc)