pydicom.values.convert_TM_string¶
-
pydicom.values.convert_TM_string(byte_string, is_little_endian, struct_format=None)¶ Return a decoded ‘TM’ value.
Parameters: - byte_string (bytes or str) – The encoded ‘TM’ element value.
- is_little_endian (bool) –
Trueif the value is encoded as little endian,Falseotherwise. - struct_format (str, optional) – Not used.
Returns: If
datetime_conversionisTruethen returns eitherTMor alistofTM, otherwise returnsstrorlistofstr.Return type: str or list of str or valuerep.TM or list of valuerep.TM