skinny.

Latest / Talk Python To Me

#271: Unlock the mysteries of time, Python's datetime that is!

See the full show notes for this episode on the website at talkpython.fm/271

Log in to save or queue this episode.

Short listen plan

No short plan yet. We need saved quotes in chapters with known start and end times, backed by a timed transcript.

The skinny

The skinny isn't ready yet — the transcript is, and you can read it now.

Time is a simple thing, right? And working with it in Python is great. You just import date time and, somewhat oddly, use the date time class from that module. Oh, except there are times with time zones and times without time zones. And why is there a total seconds, but no total minutes, total hours, or total days on time delta? How about computing the number of weeks in a time span? What if you wanted to iterate over… continue reading