TOMLLocalDateTime
classin packageklyn.io.toml
public class TOMLLocalDateTime extends Object implements ValueType:
└ TOMLLocalDateTime
All Implemented Interfaces: ValueType

Date and time without an offset or timezone, as defined by TOML.

Example
import klyn.io.toml

value = TOMLLocalDateTime(2026, 8, 10, 14, 30)
assert value.toString() == "2026-08-10T14:30:00"
Properties
Modifier and Type Member Description
public readonly property date
date as TOMLLocalDate:
Local date component.
public readonly property day
day as Int:
Day of month.
public readonly property hour
hour as Int:
Hour component.
public readonly property minute
minute as Int:
Minute component.
public readonly property month
month as Int:
Calendar month.
public readonly property second
second as Int:
Second component.
public readonly property time
time as TOMLLocalTime:
Local time component.
public readonly property usecond
usecond as Int:
Microsecond component.
public readonly property year
year as Int:
Calendar year.
Inherited Properties
propertyInherited Properties from Object: type
Constructors
Modifier and Type Member Description
public TOMLLocalDateTime
TOMLLocalDateTime(year as Int, month as Int, day as Int, hour as Int, minute as Int, second as Int = 0, usecond as Int = 0):
Creates a timezone-independent date and time.
Methods
Modifier and Type Member Description
public override toString
toString() as String:
Formats this value using TOML's local-date-time representation.
Inherited Methods
methodInherited Methods from Object: deepCopy, fromJson, hash, toDict, toJson, toString, toXml
Operators
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.