diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2015-01-25 11:20:57 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-01-25 11:20:57 -0500 |
commit | 91f71e7f7ac67d51e599ff2fcbbaf822f78cfbc6 (patch) | |
tree | a3e9bb564d2369e53a5b0c56368f4f0c998c7725 /leapsecond.py | |
parent | 444fa720feb6ca4aa1b4d6ab9875a480e8cdbc7a (diff) | |
download | gpsd-91f71e7f7ac67d51e599ff2fcbbaf822f78cfbc6.tar.gz |
pylint cleanup. All regression tests pass.
Diffstat (limited to 'leapsecond.py')
-rwxr-xr-x | leapsecond.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/leapsecond.py b/leapsecond.py index a164f7a9..18a10a57 100755 --- a/leapsecond.py +++ b/leapsecond.py @@ -76,13 +76,13 @@ __locations = [ GPS_EPOCH = 315964800 # 6 Jan 1981 00:00:00 SECS_PER_WEEK = 60 * 60 * 24 * 7 # Seconds per GPS week -ROLLOVER = 1024 # 10-bit week rollover +ROLLOVER = 1024 # 10-bit week rollover def gps_week(t): - return ((t - GPS_EPOCH)/SECS_PER_WEEK % ROLLOVER) + return (t - GPS_EPOCH)/SECS_PER_WEEK % ROLLOVER def gps_rollovers(t): - return ((t - GPS_EPOCH)/SECS_PER_WEEK / ROLLOVER) + return (t - GPS_EPOCH)/SECS_PER_WEEK / ROLLOVER def isotime(s): "Convert timestamps in ISO8661 format to and from Unix time including optional fractional seconds." |