| Trees | Index | Help |
|
|---|
| Package svs_simulation :: Package simtime :: Module timelib :: Class SimTime |
|
| Method Summary | |
|---|---|
__init__(self,
days,
hours,
minutes,
seconds)
| |
Adds specified time value to own value. | |
Overloads comparison operator. | |
Overloads '/' operator. | |
Overloads '*' operator when vector is on left hand side of operator. | |
Overloads '*' operator when vector is on right hand side of operator. | |
Returns string representation of self. | |
Overloads '-' operator. | |
Applies encoded data to self. | |
Returns encoded representation of self. | |
Sets hours ensuring it is within valid bounds. | |
Sets minutes ensuring it is within valid bounds. | |
Sets seconds ensuring it is within valid bounds. | |
Returns values as tuple, in the form: (days, hours, minutes, seconds). | |
Calculates time as total seconds. | |
| Method Details |
|---|
__add__(self,
newValue)
Adds specified time value to own value.
|
__cmp__(self,
otherTime)
Overloads comparison operator.
|
__div__(self, rhs)Overloads '/' operator. NOTE: not implemented, just returns self at present. |
__mul__(self, rhs)Overloads '*' operator when vector is on left hand side of operator. NOTE: not implemented, just returns self at present. |
__rmul__(self, lhs)Overloads '*' operator when vector is on right hand side of operator. NOTE: not implemented, just returns self at present. |
__str__(self)
Returns string representation of self.
|
__sub__(self,
rhs)
|
decode(self, data)Applies encoded data to self. |
encode(self)Returns encoded representation of self. |
setHours(self, newValue)Sets hours ensuring it is within valid bounds. |
setMinutes(self, newValue)Sets minutes ensuring it is within valid bounds. |
setSeconds(self, newValue)Sets seconds ensuring it is within valid bounds. |
toTuple(self)Returns values as tuple, in the form: (days, hours, minutes, seconds). |
__totalise(self)Calculates time as total seconds. |
| Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Thu Oct 20 15:30:27 2005 | http://epydoc.sf.net |