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 InstantInstant.EPOCHThe 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 InstantInstant.now()Obtains anInstantset to the current system millisecond time.static InstantInstant.ofEpochMilli(long epochMilli) Obtains anInstantset to the milliseconds from 1970-01-01T00:00:00Z.static InstantInstant.ofEpochSecond(long epochSecond) Obtains anInstantset to the seconds from 1970-01-01T00:00:00Z.static InstantParses anInstantfrom the specified string.static InstantInstant.parse(String str, DateTimeFormatter formatter) Parses anInstantfrom 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 immutableInstantobject.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.