SyntaxFix
Write A Post
Hire A Developer
Questions
How about -
time.strftime("%Y-%m-%dT%H:%M:%SZ", time.gmtime(seconds))
if seconds is None then it converts the local time to UTC time else converts the passed in time to UTC.
None