XmlTime¶
-
class
xsdata.models.datatype.
XmlTime
(hour, minute, second, microsecond=0, offset=None)[source]¶ Concrete xs:time builtin type.
Represents iso 8601 time format hh:mm:ss[Z|(+|-)hh:mm] with rich comparisons and hashing.
- Parameters
-
replace
(hour=None, minute=None, second=None, microsecond=None, offset=True)[source]¶ Return a new instance replacing the specified fields with new values.
-
classmethod
from_time
(obj)[source]¶ Initialize from
datetime.time
instance.
-
to_time
()[source]¶ Return a
datetime.time
instance.- Return type