LocalDateTime

Represents date and time without its time zone.

Date is defined with seconds since the Unix epoch. Time is defined with nanoseconds since midnight.

Constructors

this
this(LocalDateTime other)

Create a copy of other local date time.

this
this(Value value)

Create a local date time from a Value.

this
this(mg_local_date_time* ptr)

Create a LocalDateTime using the given mg_local_date_time.

this
this(mg_local_date_time* ptr)

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

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

opEquals
bool opEquals(LocalDateTime other)

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

ptr
const(mg_local_date_time*) ptr()
Undocumented in source. Be warned that the author may not have intended to support it.
seconds
const(long) seconds()

Returns seconds since Unix epoch.

toString
const(string) toString()

Return a printable string representation of this local date time.

Meta