dt_obj = datetime.strptime(date_str, '%Y-%m-%d %H:%M:%S')
print(repr(dt_obj))
timestamp = 1226527167.595983
dt_obj = datetime.fromtimestamp(timestamp)
print(repr(dt_obj))
how to convert a datetime string back to datetime object?