GtfsLocalTime

data class GtfsLocalTime(val hours: Int, val minutes: Int, val seconds: Int) : Comparable<GtfsLocalTime> (source)

Time in the HH:MM:SS format (H:MM:SS is also accepted). Represents a wall-clock time shown in the local time of the specified location.

Unlike ServiceTime, values greater than 24:00:00 are forbidden. 24:00:00 itself is allowed and represents the end of the local day.

Constructors

Link copied to clipboard
constructor(hours: Int, minutes: Int, seconds: Int)

Properties

Link copied to clipboard
val hours: Int

The hour component (0-24). 24 is valid only as 24:00:00.

Link copied to clipboard

The minute component (0-59).

Link copied to clipboard

The second component (0-59).

Functions

Link copied to clipboard
open operator override fun compareTo(other: GtfsLocalTime): Int