Time

Represents a time value.

Constructors

this
this(long microseconds)
Undocumented in source.

Members

Functions

asDuration
Duration asDuration()

Return the time value as a Duration.

asMicroseconds
long asMicroseconds()

Return the time value as a number of microseconds.

asMilliseconds
int asMilliseconds()

Return the time value as a number of milliseconds.

asSeconds
float asSeconds()

Return the time value as a number of seconds.

opBinary
Time opBinary(E num)

Overload of binary * and / operators to scale a time value.

opBinary
Time opBinary(Time rhs)

Overload of binary + and - operators toadd or subtract two time values.

opCmp
int opCmp(Time rhs)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(Time rhs)
Undocumented in source. Be warned that the author may not have intended to support it.
opOpAssign
Time opOpAssign(Time rhs)

Overload of += and -= assignment operators.

opOpAssign
Time opOpAssign(E num)

Overload of *= and /= assignment operators.

opUnary
Time opUnary()

Overload of unary - operator to negate a time value.

Static variables

Zero
immutable(Time) Zero;

Predefined "zero" time value.

Meta