Jun-01-2017, 11:37 AM
The "UTC time stamp" is the number of seconds since the "Epoch" (Jan 1st, 1970, 00:00:00 UTC). All the times you mentioned are UTC. This one is known as "POSIX time" (this is how time is kept on (Unix-based) computers).
The GPS timestamp is the same thing but the reference is different,and seems to be December 31st, 1979, 23:59:42 (technically it is December 1st 1980, 00:00:00 UTC, but the leap seconds are not taken in account the same way). So do go from GPS to POSIX and vice-versa you add/subtract 315964782 seconds.
POSIX time is supported in all computer libratries. In python:
The GPS timestamp is the same thing but the reference is different,and seems to be December 31st, 1979, 23:59:42 (technically it is December 1st 1980, 00:00:00 UTC, but the leap seconds are not taken in account the same way). So do go from GPS to POSIX and vice-versa you add/subtract 315964782 seconds.
POSIX time is supported in all computer libratries. In python:
Output:>>> import datetime
>>> datetime.date.fromtimestamp(0)
datetime.date(1970, 1, 1)
>>> datetime.date.fromtimestamp(1496308823)
datetime.date(2017, 6, 1)
Unless noted otherwise, code in my posts should be understood as "coding suggestions", and its use may require more neurones than the two necessary for Ctrl-C/Ctrl-V.
Your one-stop place for all your GIMP needs: gimp-forum.net
Your one-stop place for all your GIMP needs: gimp-forum.net