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

Class 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._TypeBinding_mixin: __setattr__, toDOM, toxml, validateBinding

Inherited from datetime.time: __eq__, __format__, __ge__, __getattribute__, __gt__, __hash__, __le__, __lt__, __ne__, __nonzero__, __repr__, __str__, dst, isoformat, replace, strftime, tzname, utcoffset

Inherited from object: __delattr__, __reduce_ex__, __sizeof__, __subclasshook__

Class Methods [hide private]

Inherited from _PyXBDateTime_base: XsdLiteral

Inherited from basis.simpleTypeDefinition: PythonLiteral, SimpleTypeDefinition, XsdConstraintsOK, XsdSuperType, XsdValueLength

Inherited from basis._TypeBinding_mixin: Factory

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 0x2104...
  _CF_whiteSpace = <pyxb.binding.facets.CF_whiteSpace object at ...
  __SimpleTypeDefinition = <pyxb.xmlschema.structures.SimpleType...
  _httpwww_w3_org2001XMLSchema_time_FacetMap = {<class 'pyxb.bin...

Inherited from basis.simpleTypeDefinition (private): _ReservedSymbols

Inherited from basis._TypeBinding_mixin: _validationConfig_

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

Inherited from object: __class__

Method Details [hide private]

__new__(cls, *args, **kw)
Static Method

source code 
Returns: a new object with type S, a subtype of T
Overrides: object.__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 0x2104f10>

_CF_maxExclusive

Value:
<pyxb.binding.facets.CF_maxExclusive object at 0x2106050>

_CF_maxInclusive

Value:
<pyxb.binding.facets.CF_maxInclusive object at 0x2106090>

_CF_minExclusive

Value:
<pyxb.binding.facets.CF_minExclusive object at 0x2104f50>

_CF_minInclusive

Value:
<pyxb.binding.facets.CF_minInclusive object at 0x2104fd0>

_CF_pattern

Value:
<pyxb.binding.facets.CF_pattern object at 0x2104ed0>

_CF_whiteSpace

Value:
<pyxb.binding.facets.CF_whiteSpace object at 0x2104f90>

__SimpleTypeDefinition

Value:
<pyxb.xmlschema.structures.SimpleTypeDefinition object at 0x1ef9690>

_httpwww_w3_org2001XMLSchema_time_FacetMap

Value:
{<class 'pyxb.binding.facets.CF_enumeration'>: <pyxb.binding.facets.CF\
_enumeration object at 0x2104f10>,
 <class 'pyxb.binding.facets.CF_pattern'>: <pyxb.binding.facets.CF_pat\
tern object at 0x2104ed0>,
 <class 'pyxb.binding.facets.CF_whiteSpace'>: <pyxb.binding.facets.CF_\
whiteSpace object at 0x2104f90>,
 <class 'pyxb.binding.facets.CF_minInclusive'>: <pyxb.binding.facets.C\
F_minInclusive object at 0x2104fd0>,
...