public interface Instant extends Time
An Instant represents a position in a time scale. In practice, an instant is an interval whose duration is less than the resolution of the time scale.
All the Instant subclasses have to be immutable and have to provide a Chronology as well. All standard Chronology classes are also immutable.
A huge part of the documentation of this class has been retrieved from the joda-time library.
http://joda-time.sourceforge.net
,
https://gvsig.org/web/projects/gvsig-desktop/docs/devel/org-gvsig-sensors/1-0.0/analysis-and-design/detailed-view/time-support/libraries/org-gvsig-timesupport-lib
Modifier and Type | Method and Description |
---|---|
boolean |
isAfter(Instant instant)
Is this instant after the instant passed in comparing solely by millisecond.
|
boolean |
isBefore(Instant instant)
Is this instant before the instant passed in comparing solely by millisecond.
|
boolean |
isEqual(Instant instant)
Is this instant equal to the instant passed in comparing solely by millisecond.
|
java.lang.String |
toString(java.lang.String pattern)
Output the instant using the specified format pattern.
|
getChronology, intersects, isAbsolute, isInstant, isInterval, isRelative
boolean isEqual(Instant instant)
instant
- an instant to check against, null means nowtrue
if the instant is equal to the instant passed inboolean isAfter(Instant instant)
instant
- an instant to check against, null means nowtrue
if the instant is after the instant passed inboolean isBefore(Instant instant)
instant
- an instant to check against, null means nowtrue
if the instant is before the instant passed injava.lang.String toString(java.lang.String pattern)
pattern
- the pattern specification, null means
use toString