Time helpers
More...
|
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...
|
|
◆ 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
-
timeInStringNotation | Time in string notation to decode. |
The documentation for this class was generated from the following file:
- F:/Github/Store/Feel/Assets/Feel/MMTools/Core/MMHelpers/MMTime.cs