How can I specify a timezone like "Amazon Time" (UTC -4) in a datetime
function?
Every reference that I search mentions the creation of a tzinfo
class, but that seems too much hurdle for a simple problem. Is there a simpler way to do it?
from datetime import datetime
# Why can't I do something like this?
datetime.utcnow(offset=-4)