Class TimeRanges

java.lang.Object
org.graylog2.indexer.searches.timeranges.TimeRanges

public final class TimeRanges extends Object
  • Method Details

    • toSeconds

      public static int toSeconds(TimeRange timeRange)
      Calculate the number of seconds in the given time range.
      Parameters:
      timeRange - the TimeRange
      Returns:
      the number of seconds in the given time range or 0 if an error occurred.