DateTimeZoneId

Represents date and time with its time zone.

Date is defined with seconds since the adjusted Unix epoch. Time is defined with nanoseconds since midnight. Timezone is defined with an identifier for a specific time zone.

Constructors

this
this(DateTimeZoneId other)

Create a deep copy of other date time zone id.

this
this(Value value)

Create a date time zone id from a Value.

this
this(mg_date_time_zone_id* ptr)

Create a DateTimeZoneId using the given mg_date_time_zone_id.

this
this(mg_date_time_zone_id* ptr)

Create a DateTimeZoneId from a copy of the given mg_date_time_zone_id.

Destructor

~this
~this()
Undocumented in source.

Postblit

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

Members

Functions

nanoseconds
long nanoseconds()

Returns nanoseconds since midnight.

opAssign
DateTimeZoneId opAssign(DateTimeZoneId rhs)

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

opEquals
bool opEquals(DateTimeZoneId other)

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

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

Returns seconds since Unix epoch.

toString
string toString()

Return a printable string representation of this date time zone id.

tzId
long tzId()

Returns time zone represented by the identifier.

Meta