|
OSFI-Python
3.10.1
OpenSF Integration Library
|
Public Member Functions | |
| def | __init__ (self, year, month, dom, hour, minute, sec, nanosec) |
| def | __format__ (self, fmt) |
| def | __repr__ (self) |
| def | __eq__ (self, value) |
| def | __lt__ (self, value) |
Static Public Member Functions | |
| def | parse (s) |
Public Attributes | |
| year | |
| month | |
| dom | |
| hour | |
| minute | |
| sec | |
| nanosec | |
Class that represents the parsed value of a TIME parameter. It holds attributes for the fields of a CCSDS ASCII "A" variant time code.
| def OSFI.TimeValue.TimeValue.__eq__ | ( | self, | |
| value | |||
| ) |
Two instances are equal if all their field values are exactly equal. No conversions or adaptations are performed: month=4, dom=0 differs from month=3, dom=31.
References OSFI.TimeValue.TimeValue.__astuple().
| def OSFI.TimeValue.TimeValue.__format__ | ( | self, | |
| fmt | |||
| ) |
Format this object for output. The only accepted format is 'a', the CCSDS ASCII "A" time code variant A.
References OSFI.TimeValue.TimeValue.__format__(), OSFI.TimeValue.TimeValue.dom, OSFI.TimeValue.TimeValue.hour, OSFI.TimeValue.TimeValue.minute, OSFI.TimeValue.TimeValue.month, OSFI.TimeValue.TimeValue.nanosec, OSFI.TimeValue.TimeValue.sec, and OSFI.TimeValue.TimeValue.year.
| def OSFI.TimeValue.TimeValue.__lt__ | ( | self, | |
| value | |||
| ) |
Two instances are ordered according to their fields, from most to least significant. No conversions or adaptations are performed: month=4, dom=0 is less-than month=3, dom=31.
References OSFI.TimeValue.TimeValue.__astuple().
|
static |
Parse the given string in a recognized time format (CCSDS ASCII time code) into a TimeValue. Raises ValueError if the format is unrecognized or the field values are invalid