Uses of Class
org.joda.time.Instant
Packages that use Instant
Package
Description
Provides support for dates, times, time zones, durations, intervals, and
partials.
Implementation package providing abstract and base time classes.
Package containing the chronology classes which define the calendar systems.
-
Uses of Instant in org.joda.time
Fields in org.joda.time declared as InstantModifier and TypeFieldDescriptionstatic final Instant
Instant.EPOCH
The Java epoch of 1970-01-01T00:00:00Z.Methods in org.joda.time that return InstantModifier and TypeMethodDescriptionInstant.minus
(long duration) Gets a copy of this instant with the specified duration taken away.Instant.minus
(ReadableDuration duration) Gets a copy of this instant with the specified duration taken away.static Instant
Instant.now()
Obtains anInstant
set to the current system millisecond time.static Instant
Instant.ofEpochMilli
(long epochMilli) Obtains anInstant
set to the milliseconds from 1970-01-01T00:00:00Z.static Instant
Instant.ofEpochSecond
(long epochSecond) Obtains anInstant
set to the seconds from 1970-01-01T00:00:00Z.static Instant
Parses anInstant
from the specified string.static Instant
Instant.parse
(String str, DateTimeFormatter formatter) Parses anInstant
from the specified string using a formatter.Instant.plus
(long duration) Gets a copy of this instant with the specified duration added.Instant.plus
(ReadableDuration duration) Gets a copy of this instant with the specified duration added.Instant.toInstant()
Get this object as an Instant by returningthis
.ReadableInstant.toInstant()
Get the value as a simple immutableInstant
object.Instant.withDurationAdded
(long durationToAdd, int scalar) Gets a copy of this instant with the specified duration added.Instant.withDurationAdded
(ReadableDuration durationToAdd, int scalar) Gets a copy of this instant with the specified duration added.Instant.withMillis
(long newMillis) Gets a copy of this instant with different millis. -
Uses of Instant in org.joda.time.base
Methods in org.joda.time.base that return Instant -
Uses of Instant in org.joda.time.chrono
Methods in org.joda.time.chrono that return InstantModifier and TypeMethodDescriptionGJChronology.getGregorianCutover()
Gets the cutover instant between Gregorian and Julian chronologies.