#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
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
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![#277: 10 tips every Django developer should know](https://i.ytimg.com/vi/13lSGoeKKvI/default.jpg)
![The Data Engineering Landscape in 2021 - Talk Python Live Stream](https://i.ytimg.com/vi/D0Z6ZsNNeJs/default.jpg)
![Talk Python To Me - 2020 Year in Review Episode](https://i.ytimg.com/vi/rOsA4iDyiAI/default.jpg)
![#270: Python in Supply Chains: Oil Rigs, Rockets, and Lettuce](https://i.ytimg.com/vi/EOar4EQNFYE/default.jpg)
![Episode #275: Beautiful Pythonic Refactorings](https://i.ytimg.com/vi/w69qKZA9e80/default.jpg)
![#274: Profiling Data Science Code with FIL](https://i.ytimg.com/vi/44Jk_ab4XMY/default.jpg)
![Deploying Django web applications (episode 301)](https://i.ytimg.com/vi/9SmY2b1EwwY/default.jpg)
![Python for Astronomy with Dr. Becky - Talk Python Live Stream](https://i.ytimg.com/vi/sBuhTRXhc7s/default.jpg)
![The Great Debate: THE STORYTELLING OF SCIENCE (OFFICIAL) - (Part 1/2)](https://i.ytimg.com/vi/_J4QPz52Sfo/default.jpg)
![TEDxKC - Michael Wesch - From Knowledgeable to Knowledge-Able](https://i.ytimg.com/vi/LeaAHv4UTI8/default.jpg)
![Teun van Dijk. Discourse and Knowledge](https://i.ytimg.com/vi/sxfc-WJRKEM/default.jpg)
![Spiritual Gifts: The Word of Knowledge // Randy Clark](https://i.ytimg.com/vi/-ecrgZsfttA/default.jpg)
![Talk Python: Building a Data Science Startup](https://i.ytimg.com/vi/xV-asqgKaL4/default.jpg)
![Quantum Reality: Space, Time, and Entanglement](https://i.ytimg.com/vi/BFrBr8oUVXU/default.jpg)
![The Science Behind the Coronavirus, Series II](https://i.ytimg.com/vi/rRMkEDwJxbU/default.jpg)
![Heat Treatment -The Science of Forging (feat. Alec Steele)](https://i.ytimg.com/vi/6jQ4y0LK1kY/default.jpg)
![Best of Fluent 2012: /Reg(exp){2}lained/: Demystifying Regular Expressions](https://i.ytimg.com/vi/EkluES9Rvak/default.jpg)
![Binary Search Trees Python Tutorial | Data Structures and Algorithms in Python (2/6)](https://i.ytimg.com/vi/HRhGDc6Qe9k/default.jpg)
![The Science Of Flatness](https://i.ytimg.com/vi/OWa3F4bKJsE/default.jpg)
![Tips and techniques to move from Excel to Python webcast](https://i.ytimg.com/vi/b3e8zt3sipE/default.jpg)