Python Arena

Module 29

Times and dates

Dates and times with the datetime module. Making datetime objects and reading their parts, comparing them and calculating with timedelta, and turning them into text and back with strftime and strptime.

Steps

  1. Dates and times
  2. Comparing and calculating with dates
  3. Formatting and reading dates