![]() ![]() # parse to datetime, using %Z for the time zone abbreviationÄtobj = datetime.strptime(time, '%a, %d %b %Y %H:%M:%S %Z') ![]() With Python 3.9, time zone handling is built into the standard lib with the zoneinfo module (for older Python versions, use zoneinfo via backports.zoneinfo). ![]()
0 Comments
Leave a Reply. |