public class TOMLLocalTime extends Object implements ValueType:
Time of day without a date or timezone, as defined by TOML.
import klyn.io.toml time = TOMLLocalTime(14, 30, 5, 250000) assert time.toString() == "14:30:05.25"
| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | hourhour as Int: |
Hour component. |
| public readonly property | minuteminute as Int: |
Minute component. |
| public readonly property | secondsecond as Int: |
Second component. |
| public readonly property | usecondusecond as Int: |
Microsecond component. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | TOMLLocalTimeTOMLLocalTime(hour as Int, minute as Int, second as Int = 0, usecond as Int = 0): |
Creates a timezone-independent time of day. |
| Modifier and Type | Member | Description |
|---|---|---|
| public override | toStringtoString() as String: |
Formats this value using TOML's local-time representation. |
| 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. |