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 --+    
                                                 |    
                            _PyXBDateTimeZone_base --+
                                                     |
                                        object --+   |
                                                 |   |
                                     datetime.time --+
                                                     |
                                                    time

http://www.w3.org/TR/xmlschema-2/index.html#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 preserved through the value of the hasTimeZone() field.

Nested Classes [hide private]
  _XsdBaseType
See http://www.w3.org/TR/xmlschema-2/#dt-anySimpleType
Instance Methods [hide private]

Inherited from _PyXBDateTimeZone_base: hasTimeZone

Inherited from _PyXBDateTimeZone_base (private): _setHasTimeZone

Inherited from basis.simpleTypeDefinition: __init__, pythonLiteral, xsdConstraintsOK, xsdLiteral, xsdValueLength

Inherited from basis._TypeBinding_mixin: __setattr__, toDOM, toxml, validateBinding

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

Inherited from object: __delattr__, __reduce_ex__

Class Methods [hide private]
 
XsdLiteral(cls, value)
Convert from a python value to a string usable in an XML document.
source code

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_re = re.compile(r'^(?P<hour>\d{2}):(?P<minute>\d{2})...
  __Fields = ('hour', 'minute', 'second', 'microsecond')
  _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 0x9c5a...
  _CF_whiteSpace = <pyxb.binding.facets.CF_whiteSpace object at ...
  _httpwww_w3_org2001XMLSchema_time_FacetMap = {<class 'pyxb.bin...

Inherited from basis.simpleTypeDefinition (private): _ReservedSymbols

Inherited from datetime.time: max, min, resolution

Properties [hide private]

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)

XsdLiteral(cls, value)
Class Method

source code 

Convert from a python value to a string usable in an XML document.

This should be implemented in the subclass.

Overrides: basis.simpleTypeDefinition.XsdLiteral
(inherited documentation)

Class Variable Details [hide private]

_ExpandedName

The expanded name of the component.

Value:
pyxb.namespace.XMLSchema.createExpandedName('time')

__Lexical_re

Value:
re.compile(r'^(?P<hour>\d{2}):(?P<minute>\d{2}):(?P<second>\d{2})(?P<f\
racsec>\.\d+)?(?P<tzinfo>Z|[-\+]\d\d:\d\d)?$')

_CF_enumeration

Value:
<pyxb.binding.facets.CF_enumeration object at 0x9c5a40c>

_CF_maxExclusive

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

_CF_maxInclusive

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

_CF_minExclusive

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

_CF_minInclusive

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

_CF_pattern

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

_CF_whiteSpace

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

_httpwww_w3_org2001XMLSchema_time_FacetMap

Value:
{<class 'pyxb.binding.facets.CF_whiteSpace'>: <pyxb.binding.facets.CF_\
whiteSpace object at 0x9c5a36c>,
 <class 'pyxb.binding.facets.CF_minInclusive'>: <pyxb.binding.facets.C\
F_minInclusive object at 0x9c5a52c>,
 <class 'pyxb.binding.facets.CF_maxInclusive'>: <pyxb.binding.facets.C\
F_maxInclusive object at 0x9c66e2c>,
 <class 'pyxb.binding.facets.CF_minExclusive'>: <pyxb.binding.facets.C\
F_minExclusive object at 0x9c5a3cc>,
...