1. Learn
  2. /
  3. Courses
  4. /
  5. Working with Dates and Times in Python

Exercise

Unix timestamps

Datetimes are sometimes stored as Unix timestamps: the number of seconds since January 1, 1970. This is especially common with computer infrastructure, like the log files that websites keep when they get visitors.

Instructions

100 XP
  • Complete the for loop to loop over timestamps.
  • Complete the code to turn each timestamp ts into a datetime.