LocalTime

Represents a local time. Time is defined with nanoseconds since midnight.

Constructors

this
this(LocalTime other)

Create a shallow copy of other LocalTime.

this
this(Value value)

Create a local time from a Value.

this
this(mg_local_time* ptr)

Create a LocalTime using the given mg_local_time pointer.

Alias This

localTime_

Members

Functions

nanoseconds
auto nanoseconds()

Returns nanoseconds since midnight.

opEquals
auto opEquals(LocalTime other)

Compares this local time with other. Return: true if same, false otherwise.

ptr
auto ptr()

Returns the internal mg_local_time pointer.

toHash
size_t toHash()

Return the hash code for this local time.

toString
string toString()

Return a printable string representation of this local time.

Meta