how to convert any time format into utc in python 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()