public class TOMLLocalDateTime extends Object implements ValueType
Date and time without an offset or timezone, as defined by TOML.
import klyn.io.toml value = TOMLLocalDateTime(2026, 8, 10, 14, 30) assert value.toString() == "2026-08-10T14:30:00"
| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | datedate as TOMLLocalDate |
Local date component. |
| public readonly property | dayday as Int |
Day of month. |
| public readonly property | hourhour as Int |
Hour component. |
| public readonly property | minuteminute as Int |
Minute component. |
| public readonly property | monthmonth as Int |
Calendar month. |
| public readonly property | secondsecond as Int |
Second component. |
| public readonly property | timetime as TOMLLocalTime |
Local time component. |
| public readonly property | usecondusecond as Int |
Microsecond component. |
| public readonly property | yearyear as Int |
Calendar year. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | TOMLLocalDateTime | Creates a timezone-independent date and time. |
| Modifier and Type | Member | Description |
|---|---|---|
| public override | toStringtoString() as String |
Formats this value using TOML's local-date-time representation. |
| Modifier and Type | Member | Description |
|---|---|---|
| public static | operator!=(left as TOMLLocalDateTime, right as TOMLLocalDateTime) as Boolean | Compares two local date-times for inequality. |
| public static | operator==(left as TOMLLocalDateTime, right as TOMLLocalDateTime) as Boolean | Compares two local date-times by component. |