GameTimeSpan

An ingame timespan

Constructors

this
this(ulong ticks)

Constructs a new game timespan instance

Members

Functions

FormatTime
deprecated string FormatTime(string formatstring)

Format time using the polyplex formatter

RatioOf
float RatioOf(GameTimeSpan other)

Calculates the ratio of this timespan compared to the other timespan

opBinary
GameTimeSpan opBinary(GameTimeSpan other)

Binary op

toString
string toString()

Returns a human-friendly timespan string

Properties

BaseValue
double BaseValue [@property getter]

Gets the base value (a tick)

BaseValue
double BaseValue [@property setter]

Sets the base value (a tick)

Hours
double Hours [@property getter]

Gets the amount of milliseconds as a double

LHours
ulong LHours [@property getter]

Gets the amount of hours as a long

LMilliseconds
ulong LMilliseconds [@property getter]

Gets the amount of milliseconds as a long

LMinutes
ulong LMinutes [@property getter]

Gets the amount of minutes as a long

LSeconds
ulong LSeconds [@property getter]

Gets the amount of seconds as a long

Milliseconds
double Milliseconds [@property getter]

Gets the amount of milliseconds as a double

Minutes
double Minutes [@property getter]

Gets the amount of milliseconds as a double

Seconds
double Seconds [@property getter]

Gets the amount of milliseconds as a double

Static functions

FromHours
GameTimeSpan FromHours(ulong hours)

Create a new time span from specified hours

FromMinutes
GameTimeSpan FromMinutes(ulong minutes)

Create a new time span from specified minutes

FromSeconds
GameTimeSpan FromSeconds(ulong seconds)

Create a new time span from specified seconds

Meta