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 --+    
                                             |    
                            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

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 0x19c6...
  _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

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 0x19c6710>

_CF_maxExclusive

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

_CF_maxInclusive

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

_CF_minExclusive

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

_CF_minInclusive

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

_CF_pattern

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

_CF_whiteSpace

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

__SimpleTypeDefinition

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

_httpwww_w3_org2001XMLSchema_time_FacetMap

Value:
{<class 'pyxb.binding.facets.CF_whiteSpace'>: <pyxb.binding.facets.CF_\
whiteSpace object at 0x19c6750>,
 <class 'pyxb.binding.facets.CF_pattern'>: <pyxb.binding.facets.CF_pat\
tern object at 0x19c6610>,
 <class 'pyxb.binding.facets.CF_minInclusive'>: <pyxb.binding.facets.C\
F_minInclusive object at 0x19c6650>,
 <class 'pyxb.binding.facets.CF_maxInclusive'>: <pyxb.binding.facets.C\
F_maxInclusive object at 0x19c6790>,
...