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