So the default time for Python is London, but I am trying to change it to EDT/New York time. This is what I did:
import datetime
time = datetime.datetime.now()
print('{}:{}'.format(time.strftime('%I'), time.strftime('%M')))
I want to make it EDT time, so I looked up ways to do it, but every time i got something different and it wouldn't work. I am very confused.
P.S I'm using onlineGDB as a compiler, so some things don't work.