To convert Eastern Time to GMT in Python, you can use the datetime module and the timezone class. Follow the steps below:
Here's the code:
main.py333 chars14 lines
This will output the current date and time in GMT/UTC time zone.
gistlibby LogSnag