Module pyinsim :: Class LFSTime
[hide private]
[frames] | no frames]

Class LFSTime

source code

Class to handle LFS time spans.
Instance Methods [hide private]
 
__init__(self, ms)
Init a new LFSTime object.
source code
 
__repr__(self) source code
 
__str__(self) source code
 
__cmp___(self, time) source code
 
hours(self)
Get the hours of the time.
source code
 
minutes(self)
Get the minutes of the time.
source code
 
seconds(self)
Get the seconds of the time.
source code
 
milliseconds(self)
Get the milliseconds of the time.
source code
 
totalMilliseconds(self)
Get the total milliseconds of the time.
source code
 
timeStr(self, hours=False)
Get a string representation of the time (EG h:mm:ss.tt).
source code
Method Details [hide private]

__init__(self, ms)
(Constructor)

source code 

Init a new LFSTime object.

Args:
ms - The total number of milliseconds in the time.

hours(self)

source code 

Get the hours of the time.

Returns:
The hours.

minutes(self)

source code 

Get the minutes of the time.

Returns:
The minutes.

seconds(self)

source code 

Get the seconds of the time.

Returns:
The seconds.

milliseconds(self)

source code 

Get the milliseconds of the time.

Returns:
The milliseconds.

totalMilliseconds(self)

source code 

Get the total milliseconds of the time.

Returns:
The total milliseconds.

timeStr(self, hours=False)

source code 

Get a string representation of the time (EG h:mm:ss.tt).

Args:
hours - Force the string to include hours.
Returns:
The time as a string.