Package | Description |
---|---|
org.joda.time |
Provides support for dates, times, time zones, durations, intervals, and
partials.
|
org.joda.time.base |
Implementation package providing abstract and base time classes.
|
org.joda.time.chrono |
Package containing the chronology classes which define the calendar systems.
|
Modifier and Type | Method and Description |
---|---|
Instant |
Instant.minus(long duration)
Gets a copy of this instant with the specified duration taken away.
|
Instant |
Instant.minus(ReadableDuration duration)
Gets a copy of this instant with the specified duration taken away.
|
static Instant |
Instant.now()
Obtains an
Instant set to the current system millisecond time. |
static Instant |
Instant.parse(java.lang.String str)
Parses a
Instant from the specified string. |
static Instant |
Instant.parse(java.lang.String str,
DateTimeFormatter formatter)
Parses a
Instant from the specified string using a formatter. |
Instant |
Instant.plus(long duration)
Gets a copy of this instant with the specified duration added.
|
Instant |
Instant.plus(ReadableDuration duration)
Gets a copy of this instant with the specified duration added.
|
Instant |
ReadableInstant.toInstant()
Get the value as a simple immutable
Instant object. |
Instant |
Instant.toInstant()
Get this object as an Instant by returning
this . |
Instant |
Instant.withDurationAdded(long durationToAdd,
int scalar)
Gets a copy of this instant with the specified duration added.
|
Instant |
Instant.withDurationAdded(ReadableDuration durationToAdd,
int scalar)
Gets a copy of this instant with the specified duration added.
|
Instant |
Instant.withMillis(long newMillis)
Gets a copy of this instant with different millis.
|
Modifier and Type | Method and Description |
---|---|
Instant |
AbstractInstant.toInstant()
Get this object as an Instant.
|
Modifier and Type | Field and Description |
---|---|
private Instant |
GJCacheKey.cutoverInstant |
(package private) static Instant |
GJChronology.DEFAULT_CUTOVER
The default GregorianJulian cutover point.
|
private Instant |
GJChronology.iCutoverInstant |
Modifier and Type | Method and Description |
---|---|
Instant |
GJChronology.getGregorianCutover()
Gets the cutover instant between Gregorian and Julian chronologies.
|
Constructor and Description |
---|
GJCacheKey(DateTimeZone zone,
Instant cutoverInstant,
int minDaysInFirstWeek) |
GJChronology(Chronology base,
JulianChronology julian,
GregorianChronology gregorian,
Instant cutoverInstant)
Called when applying a time zone.
|
GJChronology(JulianChronology julian,
GregorianChronology gregorian,
Instant cutoverInstant) |