klyn.io.toml.TOMLLocalTime.TOMLLocalTime
constructor
public TOMLLocalTime(hour as Int, minute as Int, second as Int = 0, usecond as Int = 0):
Description

Creates a timezone-independent time of day.

Parameters
ParameterDescription
hourHour in range 0 through 23.
minuteMinute in range 0 through 59.
secondSecond in range 0 through 59.
usecondMicroseconds in range 0 through 999999.
Throws
  • ValueException if a component is outside its valid range.
Example
time = TOMLLocalTime(23, 59, 58)
assert time.hour == 23