How do I convert a datetime string in local time to a string in UTC time?
I\'m sure I\'ve done this before, but can\'t find it and SO will hopefull
You can do it with:
>>> from time import strftime, gmtime, localtime >>> strftime('%H:%M:%S', gmtime()) #UTC time >>> strftime('%H:%M:%S', localtime()) # localtime