class documentation

Converter for dates stored in four byte BCD

A date (dd, mm, yyyy) is stored in BCD as ddmmyyyy.

Class Method get Converts bytes -> tuple[int, int, int]
Class Method set Converts tuple[int, int, int] -> bytes
Type Alias _T Undocumented
@classmethod
def get(cls, data: bytes, **kwargs) -> _T: (source)

Converts bytes -> tuple[int, int, int]

Parameters
data:bytesThe raw bytes to convert
**kwargsUndocumented
Returns
_TThe date stored in data
@classmethod
def set(cls, value: _T, **kwargs) -> bytes: (source)

Converts tuple[int, int, int] -> bytes

Parameters
value:_TThe value to convert
**kwargsUndocumented
Returns
bytesThe BCD encoding of the date in value

Undocumented

Value
tuple[int, int, int]