OSFI-Python  3.9.2
OpenSF Integration Library
OSFI.TimeValue.TimeValue Class Reference

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
 

Detailed Description

Class that represents the parsed value of a TIME parameter. It holds attributes for the
fields of a CCSDS ASCII "A" variant time code.

Member Function Documentation

◆ __eq__()

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().

◆ __format__()

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.

◆ __lt__()

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().

◆ parse()

def OSFI.TimeValue.TimeValue.parse (   s)
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

The documentation for this class was generated from the following file: