How to parse a String into Datetime in Python
Wed Jan 22 2020 18:52:28 GMT+0000 (UTC)
Saved by @logicloss01 #python #dates #functions #python3.8
Resulting object is in native time zone of user. ValueError is raised if the date_string and format can’t be parsed by time.strptime() or if it returns a value which isn’t a time tuple.
https://docs.python.org/3/library/datetime.html#datetime.datetime.strptime
Comments