Dealing with Datetimes
These are the materials for the "Dealing with Datetimes" tutorial given at PyCon US 2019.
Dealing with dates and times is famously complicated. In this tutorial, you'll work through a few common datetime-handling tasks and handle some edge cases you are likely to encounter at some point in your career.
This tutorial will cover:
- Working with time zones
- Serializing and deserializing datetimes
- Datetime arithmetic
- Scheduling recurring events
The format will be a mix of short lectures and hands-on exercises.
The fastest way to get started is to launch the binder for this repo. This is a cloud-hosted, runnable version of this repository.
To work locally, take the following steps:
Clone the repository:
git clone email@example.com:pganssle-talks/pycon-us-2019-dealing-with-datetimes.git
2a. (optional, recommended) Create and activate a
python3.7 -m virtualenv venv source venv/bin/activate
Install the required dependencies:
pip install -r requirements.txt
jupyter lab. The interface is very inuitive, but see the Jupyter documentation if you have any trouble.
Navigate to the "materials" section to find the materials notebooks, organized into sections.
- This repository is only tested on Linux and may not work perfectly on Windows.
- The minimum required Python version is 3.7
- The demonstrations may not work if you do not have
tzdatainstalled, even on Linux.
All code is released under the Apache 2.0 license. All text is released under CC-0.