pydicom.values.convert_DT_string¶
- pydicom.values.convert_DT_string(byte_string: bytes, is_little_endian: bool, struct_format: str | None = None) str | DT | MutableSequence[str] | MutableSequence[DT][source]¶
Return a decoded ‘DT’ value.
- Parameters:
byte_string (bytes) – The encoded ‘DT’ 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 returnsDTor alistofDT, otherwise returnsstrorlistofstr.- Return type:
str or MultiValue of str or valuerep.DT or MultiValue of DT