Inventory Engine  v4.0
Static Public Member Functions | List of all members
MoreMountains.Tools.MMTime Class Reference

Time helpers More...

Static Public Member Functions

static string FloatToTimeString (float t, bool displayHours=false, bool displayMinutes=true, bool displaySeconds=true, bool displayMilliseconds=false)
 Turns a float (expressed in seconds) into a string displaying hours, minutes, seconds and hundredths optionnally More...
 
static float TimeStringToFloat (string timeInStringNotation)
 Takes a hh:mm:ss:SSS string and turns it into a float value expressed in seconds More...
 

Detailed Description

Time helpers

Member Function Documentation

◆ FloatToTimeString()

static string MoreMountains.Tools.MMTime.FloatToTimeString ( float  t,
bool  displayHours = false,
bool  displayMinutes = true,
bool  displaySeconds = true,
bool  displayMilliseconds = false 
)
static

Turns a float (expressed in seconds) into a string displaying hours, minutes, seconds and hundredths optionnally

Parameters
t
displayHours
displayMinutes
displaySeconds
displayHundredths
Returns

◆ TimeStringToFloat()

static float MoreMountains.Tools.MMTime.TimeStringToFloat ( string  timeInStringNotation)
static

Takes a hh:mm:ss:SSS string and turns it into a float value expressed in seconds

Returns
a number of seconds.
Parameters
timeInStringNotationTime in string notation to decode.

The documentation for this class was generated from the following file: