Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Robodata
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Savage
Robodata
Commits
949e51d2
Commit
949e51d2
authored
9 months ago
by
Terry D. Norbraten
Browse files
Options
Downloads
Patches
Plain Diff
[Terry N.] adjust timestamp
parent
e3811f27
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CoTreceiver/src/main/java/edu/nps/moves/cot/dis/CoTMsgParserDisRunner.java
+1
-1
1 addition, 1 deletion
...ain/java/edu/nps/moves/cot/dis/CoTMsgParserDisRunner.java
with
1 addition
and
1 deletion
CoTreceiver/src/main/java/edu/nps/moves/cot/dis/CoTMsgParserDisRunner.java
+
1
−
1
View file @
949e51d2
...
@@ -466,7 +466,7 @@ public class CoTMsgParserDisRunner extends CoTparser
...
@@ -466,7 +466,7 @@ public class CoTMsgParserDisRunner extends CoTparser
Date
time
=
cotEvent
.
getTime
();
Date
time
=
cotEvent
.
getTime
();
String
timeStepMessage
=
"CoT message timestamp: "
+
time
;
String
timeStepMessage
=
"CoT message timestamp: "
+
time
;
getDisChannel
().
sendCommentPdu
(
time
.
getTime
()/
1000L
,
DisChannel
.
COMMENTPDU_TIME
,
timeStepMessage
);
getDisChannel
().
sendCommentPdu
(
time
.
getTime
()/
1000L
,
DisChannel
.
COMMENTPDU_TIME
,
timeStepMessage
);
entityStatePdu_1
.
setTimestamp
Seconds
(
time
.
getTime
()/
1000L
);
// milli to sec past 01 JAN 1970 00:00:00 GMT
entityStatePdu_1
.
setTimestamp
((
int
)
(
time
.
getTime
()/
1000L
)
)
;
// milli to sec past 01 JAN 1970 00:00:00 GMT
CotPoint
point
=
cotEvent
.
getPoint
();
CotPoint
point
=
cotEvent
.
getPoint
();
...
...
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