how to convert any datetime into utc using python 2.7 code example
Example: python datetime to utc
from datetime import timezone
timestamp = dt.replace(tzinfo=timezone.utc).timestamp()
from datetime import timezone
timestamp = dt.replace(tzinfo=timezone.utc).timestamp()