minsp.utils module
The minsp.utils module provides different auxiliary functions.
- minsp.utils.cuc_as_datetime(cuc_time) datetime
Converts a CUC time to a UTC datetime.
- minsp.utils.cuc_time_now() bytes
Generates a 7-byte CUC time from the current UTC time.
- minsp.utils.mal_decode_string(data: bytes, offset: int) tuple[str, int]
Decode a string from a packed header.
- minsp.utils.mal_encode_string(s: str) bytes
Encode a string to pack header.