Class TimeSpan

java.lang.Object
org.epics.archiverappliance.common.TimeSpan

public class TimeSpan extends Object
Simple time span class with start and end times.
Author:
mshankar
  • Constructor Details

    • TimeSpan

      public TimeSpan(Instant startTime, Instant endTime)
    • TimeSpan

      public TimeSpan(long startTimeEpochSeconds, long endTimeEpochSeconds)
  • Method Details

    • getStartTime

      public Instant getStartTime()
    • getEndTime

      public Instant getEndTime()
    • contains

      public boolean contains(TimeSpan other)
      True if this timespan completely contains the other timestamp.
      Parameters:
      other - TimeSpan
      Returns:
      boolean True or False
    • toString

      public String toString()
      Overrides:
      toString in class Object