Package pyxb :: Package binding :: Module datatypes :: Class time |
[hide private]
[frames] | no frames]

# type time

source code

                        object --+
                                 |
                           cscRoot --+
                                     |
         utils.utility.Locatable_mixin --+
                                         |
                  basis._TypeBinding_mixin --+
                                             |
                                object --+   |
                                         |   |
    utils.utility._DeconflictSymbols_mixin --+
                                             |
                            object --+       |
                                     |       |
                               cscRoot --+   |
                                         |   |
                basis._DynamicCreate_mixin --+
                                             |
                    basis.simpleTypeDefinition --+
                                                 |
                                _PyXBDateTime_base --+
                                                     |
                                        object --+   |
                                                 |   |
                                     datetime.time --+
                                                     |
                                                    time

XMLSchema datatype time.

This class uses the Python `datetime.time` class as its underlying representation. Note that per the XMLSchema spec, all dateTime objects are in UTC, and that timezone information in the string representation in XML is an indication of the local time zone's offset from UTC. Presence of time zone information in the lexical space is indicated by the tzinfo field.

Note: `pyxb.PreserveInputTimeZone()` can be used to bypass the normalization to UTC.

Nested Classes | [hide private]
_XsdBaseType XMLSchema datatype anySimpleType.

Instance Methods | [hide private]
Inherited from `_PyXBDateTime_base`: `__reduce__` Inherited from `basis.simpleTypeDefinition`: `__init__`, `pythonLiteral`, `xsdConstraintsOK`, `xsdLiteral`, `xsdValueLength` Inherited from `basis.simpleTypeDefinition` (private): `_checkValidValue`, `_isValidValue`, `_setAttribute`, `_toDOM_csc`, `_validateBinding_vx` Inherited from `basis._TypeBinding_mixin`: `__setattr__`, `toDOM`, `toxml`, `validateBinding` Inherited from `basis._TypeBinding_mixin` (private): `_TypeBinding_mixin__checkNilCtor`, `_TypeBinding_mixin__getValidationConfig`, `_constructedWithValue`, `_diagnosticName`, `_element`, `_finalizeContentModel`, `_isNil`, `_namespaceContext`, `_performValidation`, `_postDOMValidate`, `_postFactory_vx`, `_resetContent`, `_setAttributesFromKeywordsAndDOM`, `_setElement`, `_setIsNil`, `_setNamespaceContext`, `_setValidationConfig`, `_substitutesFor` Inherited from `utils.utility.Locatable_mixin` (private): `_location`, `_setLocation` Inherited from `datetime.time`: `__eq__`, `__format__`, `__ge__`, `__getattribute__`, `__gt__`, `__hash__`, `__le__`, `__lt__`, `__ne__`, `__nonzero__`, `__repr__`, `__str__`, `dst`, `isoformat`, `replace`, `strftime`, `tzname`, `utcoffset`

Class Methods | [hide private]
Inherited from `_PyXBDateTime_base`: `XsdLiteral` Inherited from `_PyXBDateTime_base` (private): `_AdjustForTimezone`, `_LexicalToKeywords`, `_SetKeysFromPython`, `_SetKeysFromPython_csc` Inherited from `basis.simpleTypeDefinition`: `PythonLiteral`, `SimpleTypeDefinition`, `XsdConstraintsOK`, `XsdSuperType`, `XsdValueLength` Inherited from `basis.simpleTypeDefinition` (private): `_CheckValidValue`, `_ConvertArguments`, `_ConvertArguments_vx`, `_FacetMap`, `_InitializeFacetMap`, `_IsSimpleTypeContent`, `_IsValidValue`, `_SimpleTypeDefinition`, `_XsdConstraintsPreCheck_vb`, `_description` Inherited from `basis._TypeBinding_mixin`: `Factory` Inherited from `basis._TypeBinding_mixin` (private): `_CompatibleValue`, `_GetValidationConfig`, `_IsUrType`, `_Name`, `_PerformValidation`, `_PreFactory_vx`, `_RequireXSIType`, `_SetValidationConfig`, `_TypeBinding_mixin__AttributesFromDOM` Inherited from `basis._DynamicCreate_mixin` (private): `_AlternativeConstructor`, `_DynamicCreate`, `_DynamicCreate_mixin__AlternativeConstructorAttribute`, `_DynamicCreate_mixin__SupersedingClassAttribute`, `_SetAlternativeConstructor`, `_SetSupersedingClass`, `_SupersedingClass`

Static Methods | [hide private]
a new object with type S, a subtype of T |
__new__(cls, *args, **kw) | source code

Class Variables | [hide private]
| _ExpandedName = `pyxb.namespace.XMLSchema.createExpandedName('t`...`` The expanded name of the component.
| _Lexical_fmt = ``'``%H:%M:%S``'`` Format for the lexical representation of a date-related instance, excluding timezone.
| __CtorFields = ``(``'``hour``'``,` `'``minute``'``,` `'``second``'``,` `'``microsecond``'``,` `'``tz``...``
| _CF_enumeration = `<pyxb.binding.facets.CF_enumeration object a`...``
| _CF_maxExclusive = `<pyxb.binding.facets.CF_maxExclusive object`...``
| _CF_maxInclusive = `<pyxb.binding.facets.CF_maxInclusive object`...``
| _CF_minExclusive = `<pyxb.binding.facets.CF_minExclusive object`...``
| _CF_minInclusive = `<pyxb.binding.facets.CF_minInclusive object`...``
| _CF_pattern = `<pyxb.binding.facets.CF_pattern object at 0x2447`...``
| _CF_whiteSpace = `<pyxb.binding.facets.CF_whiteSpace object at `...``
| __SimpleTypeDefinition = `<pyxb.xmlschema.structures.SimpleType`...``
| _httpwww_w3_org2001XMLSchema_time_FacetMap = ``{`<class 'pyxb.bin`...``
Inherited from `_PyXBDateTime_base` (private): `_DefaultDay`, `_DefaultMonth`, `_DefaultYear`, `_LocalTimeZone`, `_PyXBDateTime_base__LexicalIntegerFields`, `_PyXBDateTime_base__LexicalREMap`, `_PyXBDateTime_base__PatternMap`, `_UTCTimeZone` Inherited from `basis.simpleTypeDefinition` (private): `_ReservedSymbols` Inherited from `basis._TypeBinding_mixin`: `_validationConfig_` Inherited from `basis._TypeBinding_mixin` (private): `_Abstract`, `_AttributeMap`, `_AttributeWildcard`, `_PyXBFactoryKeywords`, `_TypeBinding_mixin__WarnedUnassociatedElement`, `_TypeBinding_mixin__constructedWithValue`, `_TypeBinding_mixin__element`, `_TypeBinding_mixin__namespaceContext`, `_TypeBinding_mixin__xsiNil`, `_XSDLocation` Inherited from `datetime.time`: `max`, `min`, `resolution`

Properties | [hide private]
Inherited from `basis._TypeBinding_mixin` (private): `_validationConfig` Inherited from `datetime.time`: `hour`, `microsecond`, `minute`, `second`, `tzinfo`

Method Details | [hide private]

### __new__(cls, *args, **kw) Static Method | source code
Returns: a new object with type S, a subtype of T Overrides: datetime.time.__new__ (inherited documentation)

Class Variable Details | [hide private]

  ### _ExpandedName The expanded name of the component. Value:
      pyxb.namespace.XMLSchema.createExpandedName('time')

  ### __CtorFields Value:
      ('hour', 'minute', 'second', 'microsecond', 'tzinfo')

  ### _CF_enumeration Value:
      <pyxb.binding.facets.CF_enumeration object at 0x2447410>

  ### _CF_maxExclusive Value:
      <pyxb.binding.facets.CF_maxExclusive object at 0x2447390>

  ### _CF_maxInclusive Value:
      <pyxb.binding.facets.CF_maxInclusive object at 0x2447490>

  ### _CF_minExclusive Value:
      <pyxb.binding.facets.CF_minExclusive object at 0x24473d0>

  ### _CF_minInclusive Value:
      <pyxb.binding.facets.CF_minInclusive object at 0x2447350>

  ### _CF_pattern Value:
      <pyxb.binding.facets.CF_pattern object at 0x2447310>

  ### _CF_whiteSpace Value:
      <pyxb.binding.facets.CF_whiteSpace object at 0x2447450>

  ### __SimpleTypeDefinition Value:
      <pyxb.xmlschema.structures.SimpleTypeDefinition object at 0x288d590>

  ### _httpwww_w3_org2001XMLSchema_time_FacetMap Value:
      {<class 'pyxb.binding.facets.CF_pattern'>: <pyxb.binding.facets.CF_pat
      tern object at 0x2447310>,
       <class 'pyxb.binding.facets.CF_enumeration'>: <pyxb.binding.facets.CF
      _enumeration object at 0x2447410>,
       <class 'pyxb.binding.facets.CF_maxInclusive'>: <pyxb.binding.facets.C
      F_maxInclusive object at 0x2447490>,
       <class 'pyxb.binding.facets.CF_minExclusive'>: <pyxb.binding.facets.C
      F_minExclusive object at 0x24473d0>,
      ...