Package gavo :: Package rscdef :: Module coverage :: Class FloatOrDateInterval
[frames] | no frames]

Class FloatOrDateInterval

source code

               object --+            
                        |            
base.attrdef.AttributeDef --+        
                            |        
 base.attrdef.AtomicAttribute --+    
                                |    
                    FloatInterval --+
                                    |
                                   FloatOrDateInterval

An attribute keeping a temporal interval as MJD.

On literal input, we also allow ISO-like timestamps. You cannot mix MJD and ISO, though.

Instance Methods
 
parse(self, value)
returns a typed python value for the string representation value.
source code

Inherited from FloatInterval: unparse

Inherited from base.attrdef.AtomicAttribute: feed, feedObject, getCopy, makeUserDoc

Inherited from base.attrdef.AttributeDef: __init__, doCallbacks, iterParentMethods

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

Class Variables
  typeDesc_ = 'A float or ISO timestamp interval (values separat...
Properties

Inherited from object: __class__

Method Details

parse(self, value)

source code 

returns a typed python value for the string representation value.

value can be expected to be a unicode string.

Overrides: base.attrdef.AtomicAttribute.parse
(inherited documentation)

Class Variable Details

typeDesc_

Value:
'A float or ISO timestamp interval (values separated by space)'