[Fixed]-Python 3 – Working with datetime.time objects – timedelta

1πŸ‘

Some of your objects are bytes objects, and others are datetime.time objects. In other words, you have a mix of objects.

Note that it was end_timestamps[i] that failed, not start_timestamps[i], in your first error. Ergo, start_timestamps[i] was a time object. If all objects in timestamps where bytes objects, datetime.combine(d, start_timestamps[i]) would have failed.

You need to figure out why your ts.time() calls in your map() call return inconsistent data types.

Leave a comment