intrepidcs / libicsneo

Intrepid Control Systems device communication library
Other
36 stars 32 forks source link

Clarify epoch for timestamp #57

Closed cconverse711 closed 9 months ago

cconverse711 commented 1 year ago

From what I can tell in observing icsneoGetTimeStampForMsg, it uses a different epoch than the traditional Linux epoch (Jan 1 1970) and instead uses Jan 1 2007. Is this correct and/or is this officially documented anywhere?

drebbe-intrepid commented 1 year ago

@cconverse711 1/1/2007 is our epoch time, I'm not sure if its documented anywhere but it comes from the firmware level.

kschwarz-intrepidcs commented 9 months ago

As @drebbe-intrepid mentioned 1/1/2007 is the ICS epoch and is correct for the return from icsneoGetTimeStampForMsg().