java.lang.Object
org.entur.netex.gtfs.export.util.GtfsUtil
Utility class for converting NeTEx values to GTFS-compatible values.
-
Method Summary
Modifier and TypeMethodDescriptionstatic inttoGtfsTime(LocalTime netexTime) Return the number of seconds since midnight for this local time.static inttoGtfsTimeWithDayOffset(LocalTime netexTime, int dayOffset) Return the number of seconds since midnight for this local time plus the number of seconds (positive or negative) corresponding to the day offset.
-
Method Details
-
toGtfsTime
Return the number of seconds since midnight for this local time.- Parameters:
netexTime- a NeTEx time.- Returns:
- the GTFS time represented by the number of seconds since midnight for this local time.
-
toGtfsTimeWithDayOffset
Return the number of seconds since midnight for this local time plus the number of seconds (positive or negative) corresponding to the day offset.- Parameters:
netexTime- a NeTEx time.dayOffset- a NeTEx day offset.- Returns:
- the GTFS time represented by the number of seconds since midnight for this local time plus the number of seconds (positive or negative) corresponding to the day offset.
-