open-dis / opendis7-java

Project to provide a complete type-safe Java implementation of the DIS Protocol version 7 (IEEE 1278.1-2012) and SISO-REF-010 Enumerations specifications.
Other
6 stars 5 forks source link

stream encoding improvements for PLAINTEXT recording #13

Open brutzman opened 2 years ago

brutzman commented 2 years ago

Need several stream encoding improvements for PLAINTEXT recording:

https://github.com/open-dis/open-dis7-java/blob/master/src/edu/nps/moves/dis7/utilities/stream/PduRecorderSelfTestENCODING_PLAINTEXT_PduCaptureLog.dislog

brutzman commented 2 years ago
# Clock Time reference value (perhaps from Simulation Management PDU)
#  6.2.14 Clock Time record

Time measurements that surpass 1 h shall be represented by a Clock Time record. The fields of this record are as follows: a) Hours. This field shall specify the hours since 0000 h 1 January 1970 UTC. This field shall be represented by a 32-bit integer. b) Time Past the Hour. This field shall specify the time past the hour indicated in the Hour field. This field shall be represented by a Timestamp (see 6.2.88)

# 1278.1, section 6.2.88 Timestamp
# Preferable time representations:
59:55.765432 absolute [human readable]
59,55.765432,absolute [CSV]

is there another standard? several; we might prefer XML Schema xsd:time format for consistency with DIS ENCODING_XML