Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Parthiban Soundram ParthibanSoundram

🎯
Focusing
View GitHub Profile
View Workout programs
from datetime import datetime
from pytz import timezone
format = "%Y-%m-%d %H:%M:%S %Z%z"
print("----------------DateTime to timezone Local time---------------")
date_str = "2018-12-17 17:04:10"
datetime_obj_naive = datetime.strptime(date_str, "%Y-%m-%d %H:%M:%S")
You can’t perform that action at this time.