java.lang.Object
org.entur.netex.gtfs.export.util.GtfsUtil

public final class GtfsUtil extends Object
Utility class for converting NeTEx values to GTFS-compatible values.
  • Method Details

    • toGtfsTime

      public static int toGtfsTime(LocalTime netexTime)
      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

      public static int toGtfsTimeWithDayOffset(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.
      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.