Загрузка страницы

#271: Unlock the Mysteries of Time, Python's Datetime That Is!

Time is a simple thing, right? And working with it in Python is great. You just import datetime and then (somewhat oddly) use the datetime class from that module.

Oh except, there are times with timezones, and times without. And why is there a total_seconds() but not total_minutes(), hours() or days() on timedelta? How about computing the number of weeks?

What if you wanted to iterate over the next 22 workdays, skipping weekends?

Ok, we'd better talk about time in Python! Good thing Paul Ganssle is here. He's a core developer who controls time in CPython.

Subscribe to the Podcast
Available on Apple Podcasts, Google Podcasts and Popular Podcast Players.

Check out the latest courses and content at https://training.talkpython.fm.

Shownotes and Transcriptions for this episode at https://talkpython.fm/271

Follow TalkPython To Me on Twitter (@talkpython) - https://twitter.com/TalkPython

More at episodes at https://talkpython.fm

Видео #271: Unlock the Mysteries of Time, Python's Datetime That Is! канала Talk Python
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
8 июля 2020 г. 18:00:05
01:04:35
Яндекс.Метрика