pydicom.values.convert_DT_string¶
-
pydicom.values.
convert_DT_string
(byte_string: bytes, is_little_endian: bool, struct_format: Optional[str] = None) → Union[str, pydicom.valuerep.DT, Sequence[Union[str, pydicom.valuerep.DT]]][source]¶ Return a decoded ‘DT’ value.
- Parameters
- Returns
If
datetime_conversion
isTrue
then returnsDT
or alist
ofDT
, otherwise returnsstr
orlist
ofstr
.- Return type
str or MultiValue of str or valuerep.DT or MultiValue of DT