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 shallow copy of other LocalDateTime.

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.

Alias This

dateTime_

Members

Functions

nanoseconds
auto nanoseconds()

Returns nanoseconds since midnight.

ptr
auto ptr()

Return pointer to internal mg_local_date_time.

seconds
auto seconds()

Returns seconds since Unix epoch.

toString
string toString()

Return a printable string representation of this local date time.

Meta