net.grelf.grip
Class TimeInterval

java.lang.Object
  extended by net.grelf.grip.TimeInterval

public class TimeInterval
extends java.lang.Object

This class describes the start and end times of an image exposure. For a single image it is assumed that that the timestamp recorded by the camera is at the end of the exposure so the start can be found by subtracting the exposure time. A similar principle applies to a sequence of images that has been combined by GRIP into one image. Times are represented internally as ms since 1970.0 UT, in the usual Java way, so time zones are irrelevant.


Constructor Summary
TimeInterval(long start, long end)
          Both parameters are ms since 1970.0 UT.
 
Method Summary
 long getEnd()
          Get end time in ms since 1970.0 UT.
 long getStart()
          Get start time in ms since 1970.0 UT.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeInterval

public TimeInterval(long start,
                    long end)
Both parameters are ms since 1970.0 UT.

Method Detail

getStart

public long getStart()
Get start time in ms since 1970.0 UT. Returns -1L if not set.


getEnd

public long getEnd()
Get end time in ms since 1970.0 UT. Returns -1L if not set.