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 --+    
                                             |    
                            object --+       |    
                                     |       |    
                               cscRoot --+   |    
                                         |   |    
        basis._RepresentAsXsdLiteral_mixin --+    
                                             |    
                            _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.ExpandedName object>
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>
  _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>
  _CF_whiteSpace = <pyxb.binding.facets.CF_whiteSpace object>
  __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]

__CtorFields

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

__SimpleTypeDefinition

Value:
<pyxb.xmlschema.structures.SimpleTypeDefinition object>

_httpwww_w3_org2001XMLSchema_time_FacetMap

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