Package couchdbkit :: Package schema :: Module properties :: Class TimeProperty
[hide private]
[frames] | no frames]

Class TimeProperty

source code

  object --+        
           |        
    Property --+    
               |    
DateTimeProperty --+
                   |
                  TimeProperty

Date property, like DateTime property but only for time. Map to datetime.time object

*ValueType*: datetime.time

Nested Classes [hide private]
  data_type
time([hour[, minute[, second[, microsecond[, tzinfo]]]]]) --> a time object
Instance Methods [hide private]
 
to_python(self, value)
convert to python type
source code
 
to_json(self, value)
convert to json, Converted value is saved in couchdb.
source code

Inherited from DateTimeProperty: __init__, default_value, validate

Inherited from Property: __delete__, __get__, __property_config__, __property_init__, __set__, empty

Inherited from Property (private): _to_json, _to_python

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]
 
now(self) source code
Class Variables [hide private]

Inherited from Property: creation_counter

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

now(self)
Static Method

source code 
Overrides: DateTimeProperty.now

to_python(self, value)

source code 

convert to python type

Overrides: Property.to_python
(inherited documentation)

to_json(self, value)

source code 

convert to json, Converted value is saved in couchdb.

Overrides: Property.to_json
(inherited documentation)