Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EdosL0Util
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SIPS
EdosL0Util
Commits
2a7e717a
Commit
2a7e717a
authored
4 years ago
by
Bruce Flynn
Browse files
Options
Downloads
Patches
Plain Diff
fix incorrect leapsec math for AQUA CUC
parent
624c428e
No related branches found
Branches containing commit
Tags
0.15.2
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
edosl0util/headers.py
+1
-1
1 addition, 1 deletion
edosl0util/headers.py
tests/unit/test_headers.py
+1
-1
1 addition, 1 deletion
tests/unit/test_headers.py
with
2 additions
and
2 deletions
edosl0util/headers.py
+
1
−
1
View file @
2a7e717a
...
...
@@ -110,7 +110,7 @@ class AquaCucTimecode(Timecode):
def
day_segmented_timecode
(
self
):
days
=
self
.
seconds
/
86400
leap_ms
=
self
.
leap_seconds
*
1e3
millis
=
86400
*
(
days
-
int
(
days
))
*
1e3
+
leap_ms
millis
=
86400
*
(
days
-
int
(
days
))
*
1e3
-
leap_ms
micros
=
self
.
SUB_SECOND_UNITS
*
self
.
sub_seconds
return
int
(
days
),
int
(
millis
),
int
(
micros
)
...
...
This diff is collapsed.
Click to expand it.
tests/unit/test_headers.py
+
1
−
1
View file @
2a7e717a
...
...
@@ -11,7 +11,7 @@ class TestAquaCUCTimecode:
pytest
.
param
(
# GBAD secondary header data
bytes
([
0xAE
,
0x25
,
0x77
,
0x1E
,
0xCA
,
0x8E
,
0x80
,
0x20
]),
datetime
(
2021
,
4
,
30
,
20
,
4
4
,
35
,
497560
),
datetime
(
2021
,
4
,
30
,
20
,
4
3
,
21
,
497560
),
id
=
"
gbad
"
,
)
],
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment