pydicom.valuerep.DA¶
-
class
pydicom.valuerep.DA(val)¶ Store value for an element with VR ‘DA’ as
datetime.date.Note that the
datetime.datebase class is immutable.-
__init__(val)¶ Initialize self. See help(type(self)) for accurate signature.
Methods
__init__(val)Initialize self. ctimeReturn ctime() style string. fromisoformatstr -> Construct a date from the output of date.isoformat() fromordinalint -> date corresponding to a proleptic Gregorian ordinal. fromtimestamptimestamp -> local date from a POSIX timestamp (like time.time()). isocalendarReturn a 3-tuple containing ISO year, week number, and weekday. isoformatReturn string in ISO 8601 format, YYYY-MM-DD. isoweekdayReturn the day of the week represented by the date. replaceReturn date with new specified fields. strftimeformat -> strftime() style string. timetupleReturn time tuple, compatible with time.localtime(). todayCurrent date or datetime: same as self.__class__.fromtimestamp(time.time()). toordinalReturn proleptic Gregorian ordinal. weekdayReturn the day of the week represented by the date. Attributes
daymaxminmonthoriginal_stringresolutionyear-