Module spacepackets::time
source · Expand description
CCSDS Time Code Formats according to CCSDS 301.0-B-4
Modules
- Module to generate the ASCII timecodes specified in CCSDS 301.0-B-4 section 3.5 . See chrono::DateTime::format for a usage example of the generated chrono::format::DelayedFormat structs.
- Module to generate or read CCSDS Day Segmented (CDS) timestamps as specified in CCSDS 301.0-B-4 section 3.3 .
- Module to generate or read CCSDS Unsegmented (CUC) timestamps as specified in CCSDS 301.0-B-4 section 3.2 .
Structs
- UNIX timestamp: Elapsed seconds since 1970-01-01T00:00:00+00:00.
Enums
Constants
Traits
- Trait for generic CCSDS time providers.
Functions
- Retrieve the CCSDS time code from the p-field. If no valid time code identifier is found, the value of the raw time code identification field is returned.
- Convert CCSDS days to UNIX days
- Similar to unix_to_ccsds_days but converts the epoch instead, which is the number of elpased seconds since the CCSDS and UNIX epoch times.
- Convert UNIX days to CCSDS days