Package gromacs :: Module utilities :: Class Timedelta
[hide private]
[frames] | no frames]

Class Timedelta

source code

        object --+    
                 |    
datetime.timedelta --+
                     |
                    Timedelta

Extension of :class:`datetime.timedelta`.

Provides attributes ddays, dhours, dminutes, dseconds to measure
the delta in normal time units.

ashours gives the total time in fractional hours. 

Instance Methods [hide private]
 
strftime(self, fmt='%d:%H:%M:%S')
Primitive string formatter.
source code

Inherited from datetime.timedelta: __abs__, __add__, __div__, __eq__, __floordiv__, __ge__, __getattribute__, __gt__, __hash__, __le__, __lt__, __mul__, __ne__, __neg__, __new__, __nonzero__, __pos__, __radd__, __rdiv__, __reduce__, __repr__, __rfloordiv__, __rmul__, __rsub__, __str__, __sub__

Inherited from object: __delattr__, __init__, __reduce_ex__, __setattr__

Class Variables [hide private]

Inherited from datetime.timedelta: max, min, resolution

Properties [hide private]
  dhours
Hours component of the timedelta.
  dminutes
Minutes component of the timedelta.
  dseconds
Seconds component of the timedelta.
  ashours
Timedelta in (fractional) hours.

Inherited from datetime.timedelta: days, microseconds, seconds

Inherited from object: __class__

Method Details [hide private]

strftime(self, fmt='%d:%H:%M:%S')

source code 

Primitive string formatter.

The only directives understood are the following:
Directive meaning
%d day as integer
%H hour [00-23]
%h hours including days
%M minute as integer [00-59]
%S second as integer [00-59]

Property Details [hide private]

dhours

Hours component of the timedelta.
Get Method:
unreachable.dhours(self) - Hours component of the timedelta.

dminutes

Minutes component of the timedelta.
Get Method:
unreachable.dminutes(self) - Minutes component of the timedelta.

dseconds

Seconds component of the timedelta.
Get Method:
unreachable.dseconds(self) - Seconds component of the timedelta.

ashours

Timedelta in (fractional) hours.
Get Method:
unreachable.ashours(self) - Timedelta in (fractional) hours.