The OpenD Programming Language

Clock

Effectively a namespace to make it clear that the methods it contains are getting the time from the system clock. It cannot be instantiated.

Members

Properties

currStdTime
long currStdTime [@property getter]

Returns the number of hnsecs since midnight, January 1st, 1 A.D. for the current time.

Static functions

currTime
SysTime currTime(TimeZone tz)

Returns the current time in the given time zone.

Examples

Get the current time as a SysTime

import std.datetime.timezone : LocalTime;
SysTime today = Clock.currTime();
assert(today.timezone is LocalTime());

Meta