pydicom.valuerep.TM#
- class pydicom.valuerep.TM(*args: Any, **kwargs: Any)[source]#
Store value for an element with VR TM as
datetime.time.Note that the
datetime.timebase class is immutable.Methods
__init__(*args, **kwargs)Return self.tzinfo.dst(self).
string -> time from a string in ISO 8601 format
Return string in ISO 8601 format, [HH[:MM[:SS[.mmm[uuu]]]]][+HH:MM].
Return time with new specified fields.
format -> strftime() style string.
Return self.tzinfo.tzname(self).
Return self.tzinfo.utcoffset(self).
Attributes
foldhourmaxmicrosecondminminuteresolutionsecondtzinfooriginal_string- dst()#
Return self.tzinfo.dst(self).
- classmethod fromisoformat()#
string -> time from a string in ISO 8601 format
- isoformat()#
Return string in ISO 8601 format, [HH[:MM[:SS[.mmm[uuu]]]]][+HH:MM].
The optional argument timespec specifies the number of additional terms of the time to include. Valid options are ‘auto’, ‘hours’, ‘minutes’, ‘seconds’, ‘milliseconds’ and ‘microseconds’.
- replace()#
Return time with new specified fields.
- strftime()#
format -> strftime() style string.
- tzname()#
Return self.tzinfo.tzname(self).
- utcoffset()#
Return self.tzinfo.utcoffset(self).