Clock.currTime

SysTime currTime(ClockType clockType = ClockType.normal)(immutable TimeZone tz = LocalTime()) @safe

Returns the current time in the given time zone.

Parameters

clockTypeThe ClockType indicates which system clock to use to get the current time. Very few programs need to use anything other than the default.
tzThe time zone for the SysTime that's returned.

Throws

DateTimeException if it fails to get the

time.