LocalTime

Represents local time.

Time is defined with nanoseconds since midnight.

Constructors

this
this(LocalTime other)

Create a copy of other local time.

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.

this
this(mg_local_time* ptr)

Create a LocalTime from a copy of the given mg_local_time.

Destructor

~this
~this()
Undocumented in source.

Postblit

this(this)
this(this)
Undocumented in source.

Members

Functions

nanoseconds
const(long) nanoseconds()

Returns nanoseconds since midnight.

opAssign
LocalTime opAssign(LocalTime rhs)

Assigns a local time to another. The target of the assignment gets detached from whatever local time it was attached to, and attaches itself to the new local time.

opEquals
bool opEquals(LocalTime other)

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

ptr
const(mg_local_time*) ptr()
Undocumented in source. Be warned that the author may not have intended to support it.
toString
const(string) toString()

Return a printable string representation of this local time.

Meta