Class TimeRange

java.lang.Object
ecmwf.common.technical.TimeRange

public class TimeRange extends Object
The Class TimeRange.
  • Constructor Details

    • TimeRange

      public TimeRange(LocalTime startTime, LocalTime endTime)
      Instantiates a new time range.
      Parameters:
      startTime - the start time
      endTime - the end time
  • Method Details

    • within

      public boolean within(LocalTime current)
      Within.
      Parameters:
      current - the current
      Returns:
      true, if successful
    • parse

      public static TimeRange parse(String timeRange) throws DateTimeParseException
      Parses the.
      Parameters:
      timeRange - the time range
      Returns:
      the time range
      Throws:
      DateTimeParseException - the date time parse exception
    • getStartTime

      public LocalTime getStartTime()
      Gets the start time.
      Returns:
      the start time
    • getEndTime

      public LocalTime getEndTime()
      Gets the end time.
      Returns:
      the end time
    • toString

      public String toString()
      To string.
      Overrides:
      toString in class Object