Skip to content

Commit e8e3dd4

Browse files
authored
Merge pull request #56 from Stanford-NavLab/ramya/timeconversions
Updated time_conversions and the unit tests for this module.
2 parents f28d1b5 + 1f8f2fb commit e8e3dd4

6 files changed

Lines changed: 667 additions & 23 deletions

File tree

CONTRIBUTORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ Shubh Gupta
44
Adam Dai
55
Bradley Collicott
66
Shivam Soni
7+
Sriramya Bhamidipati

docs/source/reference/test_utils/modules.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ utils
88
test_file_operations
99
test_filters
1010
test_sim_gnss
11+
test_time_conversions
1112
test_visualizations
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
test\_time\_conversions module
2+
==============================
3+
4+
.. automodule:: test_time_conversions
5+
:members:
6+
:undoc-members:
7+
:show-inheritance:

gnss_lib_py/utils/constants.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
__date__ = "13 July 2021"
1414

1515
from numpy import sqrt
16+
from datetime import datetime, timezone
1617

1718
A = 6378137.
1819
"""float : Semi-major axis (radius) of the Earth [m]."""
@@ -60,3 +61,6 @@
6061

6162
WEEKSEC = 604800
6263
""" int : Number of seconds in a week [s]."""
64+
65+
GPS_EPOCH_0 = datetime(1980, 1, 6, 0, 0, 0, 0, tzinfo=timezone.utc)
66+
""" datetime.datetime: Starting time for GPS epoch"""

0 commit comments

Comments
 (0)