sarkit.sidd.XdtType
- class XdtType(force_utc=True)
Transcoder for XML dateTime (XDT) XML parameter types.
- Parameters:
- force_utcbool, optional
If
True, naive datetimes are treated as UTC times and non-UTC times are adjusted to UTC prior to transcoding.
Methods
make_elem(tag, val)Create a new XML element.
parse_elem(elem)Returns a
datetimeconstructed from the stringelem.text.set_elem(elem, val)Set
elem.textto a string representation of the date and time fromval.