CurrentDateTimeTool

constructor(clock: Clock = Clock.System, timeZone: TimeZone = TimeZone.currentSystemDefault())

Parameters

clock

Clock source. Override in tests for determinism.

timeZone

Time zone for the formatted output. Defaults to the system TZ.