A specific instant of time on a continuous time-scale.
An instant represents a single point in time irrespective of any time-zone offsets or geographical locations.
no subtypes hierarchy
Initializer |
Instant(Integer millisecondsOfEpoch) Parameters:
|
Attributes | |
hash | Source Codeshared actual Integer hash This implementation respect the constraint that if |
millisecondsOfEpoch | Source Codeshared actual Integer millisecondsOfEpoch Internal value of an instant as a number of milliseconds since 1970-01-01T00:00:00.000Z. |
string | Source Codeshared actual String string Returns ISO-8601 formatted String representation of this time of day in UTC. Reference: ISO-8601 Time Offsets from UTC Refines Object.string |
Inherited Attributes |
Attributes inherited from: Ordinal<Other> |
Attributes inherited from: ReadableInstant |
Methods | |
compare | Source Codeshared actual Comparison compare(Instant other) Compares this instant to the other instant. Refines Comparable.compare |
date | Source Codeshared Date date(TimeZone timeZone = ...) Returns this instant as a Parameters:
|
dateTime | Source Codeshared DateTime dateTime(TimeZone timeZone = ...) Returns this instant as a Parameters:
|
durationFrom | Source Codeshared Duration durationFrom(Instant other) Returns duration in milliseconds from other instant to this instant. |
durationTo | Source Codeshared Duration durationTo(Instant other) Returns duration in milliseconds from this instant to the other instant. |
equals | Source Codeshared actual Boolean equals(Object other) Returns true if given value is same type and milliseconds of epoch. |
minus | Source Codeshared Instant minus(Duration|Period other) Subtracts a period to this instant. |
neighbour | Source Codeshared actual Instant neighbour(Integer offset) The indirect successor or predecessor at the given
Refines Enumerable.neighbour |
offset | Source Codeshared actual Integer offset(Instant other) Compute the offset from the given value, where:
Refines Enumerable.offset |
plus | Source Codeshared Instant plus(Duration|Period other) Adds a period to this instant. |
time | Source Codeshared Time time(TimeZone timeZone = ...) Returns time of day for this instant. Parameters:
|
zoneDateTime | Source Codeshared ZoneDateTime zoneDateTime(TimeZone timeZone = ...) Returns ZoneDateTime value for this instant. Parameters:
|
Inherited Methods |
Methods inherited from: Comparable<Other> |
Methods inherited from: Enumerable<Other> |