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

Time of day without a date or timezone, as defined by TOML.

Example
import klyn.io.toml

time = TOMLLocalTime(14, 30, 5, 250000)
assert time.toString() == "14:30:05.25"
Properties
Modifier and Type Member Description
public readonly property hour
hour as Int:
Hour component.
public readonly property minute
minute as Int:
Minute component.
public readonly property second
second as Int:
Second component.
public readonly property usecond
usecond as Int:
Microsecond component.
Inherited Properties
propertyInherited Properties from Object: type
Constructors
Modifier and Type Member Description
public TOMLLocalTime
TOMLLocalTime(hour as Int, minute as Int, second as Int = 0, usecond as Int = 0):
Creates a timezone-independent time of day.
Methods
Modifier and Type Member Description
public override toString
toString() as String:
Formats this value using TOML's local-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 TOMLLocalTime, right as TOMLLocalTime) as Boolean: Compares two local times for inequality.
public static operator==(left as TOMLLocalTime, right as TOMLLocalTime) as Boolean: Compares two local times by component.