The OpenD Programming Language

Clock.currTime

Returns the current time in the given time zone.

class Clock
static @safe
currTime
(
immutable TimeZone tz = LocalTime()
)

Parameters

clockType

The core.time.ClockType indicates which system clock to use to get the current time. Very few programs need to use anything other than the default.

tz TimeZone

The time zone for the SysTime that's returned.

Throws

std.datetime.date.DateTimeException if it fails to get the time.

Meta