I have a script that needs utc as an input:
This gives me the time format I need, but the wrong time:
time = datetime.datetime.utcnow().isoformat() + 'Z'
I want to be able to set the time in a format like this but have it output in utc.
time = datetime.datetime(2020, 4, 20, 12, 0, 0)