pupil-labs / pupil-tutorials

Jupyter Notebooks demonstrating how to process Pupil Player exports
GNU Lesser General Public License v3.0
28 stars 13 forks source link

pupil-tutorials for post-hoc time_sync seems wrong #20

Open Oceanyz opened 2 years ago

Oceanyz commented 2 years ago

First the reference code gives a detailed explanation and is easy to understand. However, the results of the code appear to be wrong. The system time of the sample recording is about 2019-10-24 17:31. And the datetime timestamp converted is 2019-10-24 15:30 as shown in Out[8]. So what went wrong? image image

papr commented 2 years ago

Hi, please note that the tutorial calculates timezone-naive date-times in Unix epoch. In other words, the date-times are in UTC+0. Your file explorer shows your local time which is timezone-aware. This explains the 2h-difference.

The ~1-minute difference can likely be explained but requires more information about what is being displayed:

  1. Does the file explorer show the creation date or the date of the last modification?
  2. Which sample does Out[8] show?