Package jetbrains.buildServer.serverSide
Interface TimePoint
-
- All Known Implementing Classes:
TimePointImpl
public interface TimePointRepresents a time point with providing the relative time counted from some time base which depends on a particular service producing TimePoint objects (usually the time base is the moment of object creation). The time base can be calculated as followsTimePoint tp;
Date timeBase = new Date(tp.getAbsoluteTime().getTime()-tp.getRelativeSeconds()*1000)- Author:
- Sergey.Anchipolevsky Date: 20.06.2007
- See Also:
Date
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DategetAbsoluteTime()Returns the absolute time of the time point.longgetRelativeSeconds()Returns the number of seconds from the time base.
-
-
-
Method Detail
-
getAbsoluteTime
@NotNull Date getAbsoluteTime()
Returns the absolute time of the time point.- Returns:
- see above
-
getRelativeSeconds
long getRelativeSeconds()
Returns the number of seconds from the time base. If the value is negative the time point is prior to the time base.- Returns:
- see above
-
-