Feel 5.9
The best way to improve your game's feel and make it extra juicy
Loading...
Searching...
No Matches
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.
static float TimeStringToFloat (string timeInStringNotation)
 Takes a hh:mm:ss:SSS string and turns it into a float value expressed in seconds.

Detailed Description

Time helpers.

Member Function Documentation

◆ FloatToTimeString()

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()

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:
  • H:/Code/MoreMountains/feel/Assets/Feel/MMTools/Core/MMHelpers/MMTime.cs