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

Date without a time or timezone, as defined by TOML.

Example
import klyn.io.toml

date = TOMLLocalDate(2026, 8, 10)
assert date.toString() == "2026-08-10"
Properties
Modifier and Type Member Description
public readonly property day
day as Int:
Day of month.
public readonly property month
month as Int:
Calendar month.
public readonly property year
year as Int:
Calendar year.
Inherited Properties
propertyInherited Properties from Object: type
Constructors
Modifier and Type Member Description
public TOMLLocalDate
TOMLLocalDate(year as Int, month as Int, day as Int):
Creates a timezone-independent calendar date.
Methods
Modifier and Type Member Description
public override toString
toString() as String:
Formats this value using TOML's local-date 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 TOMLLocalDate, right as TOMLLocalDate) as Boolean: Compares two local dates for inequality.
public static operator==(left as TOMLLocalDate, right as TOMLLocalDate) as Boolean: Compares two local dates by calendar components.