Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated UTC time conversion #36

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

jlevers
Copy link

@jlevers jlevers commented May 2, 2019

I updated gpsu.go to include the milliseconds in the format string―it doesn't change functionality, but I thought it made it a little more clear as to what the input data actually looked like (I believe the format is yymmddhhmmss.sss as per gpmf-parser's README).

The change in telemetry.go makes it so that the UTC timestamps produced by gopro2json don't have an extra 3 0's at the end of them, as mentioned in my comment in #33. Also, the 3 digits before the trailing zeros (corresponding to milliseconds) are now after the decimal. With this change, the JSON UTC timestamps are valid Unix timestamps. The 3 digits after the decimal place are milliseconds.

Please let me know if there are any changes you'd like me to make...thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant