In this video course, you’ve generated a datetime
object and have seen how to pick out different attributes of the object. You’ve also examined a few ways to output the datetime
object in different formats.
You’ve also acquainted yourself with Unix time and ISO timestamps and explored how you can represent your timestamp unambiguously. For this, you’ve dipped your toes into the complex world of time zones and made your datetime
object time zone aware.
To dive deeper into the datetime
module, check out Using Python datetime
to Work With Dates and Times. You can also explore the time
module with A Beginner’s Guide to the Python time
Module and Mastering Python’s Built-in time
Module.
If you’re looking to time how long things take, then check out the tutorial Python Timer Functions: Three Ways to Monitor Your Code.
Congratulations, you made it to the end of the course! What’s your #1 takeaway or favorite thing you learned? How are you going to put your newfound skills to use? Leave a comment in the discussion section and let us know.