Time

Represents time with its time zone.

Time is defined with nanoseconds since midnight. Timezone is defined with seconds from UTC.

Constructors

this
this(Time other)

Create a copy of other time.

this
this(Value value)

Create a time from a Value.

this
this(mg_time* ptr)

Create a Time using the given mg_time.

this
this(mg_time* ptr)

Create a Time from a copy of the given mg_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
Time opAssign(Time rhs)

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

opEquals
bool opEquals(Time other)

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

ptr
const(mg_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 time.

tz_offset_seconds
const(long) tz_offset_seconds()

Returns time zone offset in seconds from UTC.

Meta