This is a preview of a complete video course about how to get the current time in Python. Getting the current time in Python is a nice starting point for many time-related operations. One very important use case is creating timestamps. In this tutorial, you’ll learn how to get, display, and format the current time with the datetime module.
This is a portion of the complete course, which you can find here:
https://realpython.com/courses/python...
The rest of the course covers:
- Working with Unix Time
- Getting Time Zone-Aware Python Time and Date Objects