klyn.io.toml.TOMLLocalDateTime.TOMLLocalDateTime
constructor
public TOMLLocalDateTime(year as Int, month as Int, day as Int, hour as Int, minute as Int, second as Int = 0, usecond as Int = 0):
Description

Creates a timezone-independent date and time.

Parameters
ParameterDescription
yearCalendar year.
monthCalendar month.
dayDay of month.
hourHour of day.
minuteMinute of hour.
secondSecond of minute.
usecondMicrosecond component.
Throws
  • ValueException if a component is invalid.
Example
value = TOMLLocalDateTime(2024, 2, 29, 12, 0)
assert value.date.day == 29