XmlPeriod¶
-
class
xsdata.models.datatype.
XmlPeriod
(value)[source]¶ Immutable string representation for xs:g[Year[Month[Day]]] types.
On initialization the period format will be analyzed and parsed into date units.
- Formats:
xs:gDay: —%d%z
xs:gMonth: –%m%z
xs:gYear: %Y%z
xs:gMonthDay: –%m-%d%z
xs:gYearMonth: %Y-%m%z
- Parameters
value (
str
) – String representation of a xs:period, eg –11-01Z