How to change format time to GPS week, GPS seconds?
35 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
galaxy
el 19 de Nov. de 2021
Comentada: galaxy
el 24 de Nov. de 2021
Hi all,
How can I change:
GPS dates (NO LEAP SECONDS ACCOUNTED)
April 30th, 2018, 03:46:40 => GPS week 1999, GPS seconds 100000
April 30th, 2018, 17:40:00 => GPS week 1999, GPS seconds 150000
0 comentarios
Respuesta aceptada
Rik
el 19 de Nov. de 2021
The start date of this GPS epoch is probably on Wikipedia. You can simply subtract that date from your date.
Then you calculate the number of seconds of that difference. Use mod to find the remainder after division by 7*24*60*60 and use floor to find the number of weeks elapsed.
Más respuestas (0)
Ver también
Categorías
Más información sobre Automated Driving Toolbox en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!