Python: Dates & Times with datetime

Wishlist Share

About Course

Handle dates and times correctly in Python. Learn the date, time, datetime and timedelta types, how to parse and format UK-style dates, how to do date arithmetic, and how to work with time zones and British Summer Time using zoneinfo.

Tutwoo is an independent learning provider. This course is general skills training based on official documentation. It is not an accredited qualification. Software behaviour can change between versions, so check the official documentation for the version you use.

What Will You Learn?

  • Create dates and datetimes and get today’s date Parse text into dates with strptime and format them with strftime Calculate differences and deadlines with timedelta Use zoneinfo for UK time and avoid daylight saving bugs

Course Content

Course Lessons

  • The datetime module
  • Parsing and formatting dates
  • Date arithmetic with timedelta
  • Time zones and British Summer Time

Sources & Further Reading
The official guidance this course is based on.

Final Assessment

Student Ratings & Reviews

No Review Yet
No Review Yet

Want to receive push notifications for all major on-site activities?

✕