Absolute Time

The string 2:55:05.000 AM on the 5th of July 2010 represents an absolute time.

Absolute times could be specified relative to any fixed starting time, but for practical (RTSJ and java.util.Date) purposes absolute times are specified as an offset from 00:00:00.000 GMT on the 1st of January, 1970.

AbsoluteTime adds the following methods to HighResolutionTime

AbsoluteTime add(long millis, int nanos)
 AbsoluteTime add(long millis, int nanos, AbsoluteTime
               destination)
 AbsoluteTime add(RelativeTime time)
 AbsoluteTime add(RelativeTime time, AbsoluteTime destination)
 java.util.Date getDate()
 void set(java.util.Date date)
 RelativeTime subtract(AbsoluteTime time) RelativeTime subtract(AbsoluteTime time, RelativeTime destination) AbsoluteTime ...

Get Real-Time Java™ Platform Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.