Mastering Python's Built-in time Module

Liam Pulsifer

Liam Pulsifer 7 Lessons 39m
intermediate

The Python time module provides many ways of representing time in code, such as objects, numbers, and strings. It also provides functionality other than representing time, like waiting during code execution and measuring the efficiency of your code.

This course will walk you through the most commonly used functions and objects in time.

By the end of this course, you’ll be able to:

  • Understand core concepts at the heart of working with dates and times, such as epochs, time zones, and daylight savings time
  • Represent time in code using floats, tuples, and struct_time
  • Convert between different time representations
  • Suspend thread execution
  • Measure code performance using perf_counter()

About Liam Pulsifer

Liam Pulsifer Liam Pulsifer

Liam is a software engineer and avid Pythonista. When he's not writing code to automate all of his daily tasks, you can often find him running, playing basketball and tennis, reading, or eating good food.

» More about Liam

Each tutorial at Real Python is created by a team of developers so that it meets our high quality standards. The team members who worked on this tutorial are:

« Browse All Courses