ServiceTime
data class ServiceTime(val hours: Int, val minutes: Int, val seconds: Int) : Comparable<ServiceTime> (source)
Time in the HH:MM:SS format (H:MM:SS is also accepted). The time is measured from "noon minus 12h" of the service day (effectively midnight except for days on which daylight savings time changes occur). For times occurring after midnight, enter the time as a value greater than 24:00:00 in HH:MM:SS local time for the day on which the trip schedule begins. Example: 14:30:00 for 2:30PM or 25:35:00 for 1:35AM on the next day.
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Converts this service time to an kotlin.time.Instant on the given serviceDate in the specified timezone. If the service time represents a time after midnight (hours> 23), the resulting instant will fall on the next calendar day.