Skip to content

Updated UTC time conversion#36

Open
jlevers wants to merge 3 commits intostilldavid:masterfrom
jlevers:time-fix
Open

Updated UTC time conversion#36
jlevers wants to merge 3 commits intostilldavid:masterfrom
jlevers:time-fix

Conversation

@jlevers
Copy link
Copy Markdown

@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.

1 participant