To convert GMT to Australian Eastern Time (AET) in Python, we need to:
datetime
, timezone
, timedelta
, pytz
.datetime
object for the GMT time.astimezone
method.Here's the Python code to achieve this:
main.py515 chars17 lines
Output:
main.py30 chars2 lines
gistlibby LogSnag