How to convert dates/times in Python?

Working with dates and times in Python often involves converting between the various possible representations. Here is a graphic to quickly lookup how to convert between the different formats (epoch, struct_time, Python datetime object, string representation, and matplotlib date convention).

This entry was posted in Helpguide. Bookmark the permalink.

Leave a Reply