Package jetbrains.buildServer.serverSide
Interface TimePoint
-
- All Known Implementing Classes:
TimePointImpl
public interface TimePoint
Represents 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 Date
getAbsoluteTime()
Returns the absolute time of the time point.long
getRelativeSeconds()
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
-
-