pydicom.values.convert_DT_string¶
-
pydicom.values.
convert_DT_string
(byte_string, is_little_endian, struct_format=None)¶ Return a decoded ‘DT’ value.
- Parameters
byte_string (bytes or str) – The encoded ‘DT’ element value.
is_little_endian (bool) –
True
if the value is encoded as little endian,False
otherwise.struct_format (str, optional) – Not used.
- Returns
if
datetime_conversion
isTrue
then returnsDT
or alist
ofDT
, otherwise returnsstr
orlist
ofstr
.- Return type
str or list of str or valuerep.DT or list of DT