Uses of Interface
org.joda.time.ReadableInstant
Packages that use ReadableInstant
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.
Implementation package providing abstract and standard field classes.
Provides printing and parsing support for instants and durations.
-
Uses of ReadableInstant in org.joda.time
Subinterfaces of ReadableInstant in org.joda.timeModifier and TypeInterfaceDescriptioninterfaceDefines an instant in time that can be queried using datetime fields.interfaceDefines an instant in time that can be queried and modified using datetime fields.interfaceDefines an instant in the datetime continuum that can be queried and modified.Classes in org.joda.time that implement ReadableInstantModifier and TypeClassDescriptionfinal classDeprecated.The time of midnight does not exist in some time zones where the daylight saving time forward shift skips the midnight hour.final classDateTime is the standard implementation of an unmodifiable datetime class.final classInstant is the standard implementation of a fully immutable instant in time.classMutableDateTime is the standard implementation of a modifiable datetime class.Methods in org.joda.time with parameters of type ReadableInstantModifier and TypeMethodDescriptionbooleanReadableInterval.contains(ReadableInstant instant) Does this time interval contain the specified instant.static DaysDays.daysBetween(ReadableInstant start, ReadableInstant end) Creates aDaysrepresenting the number of whole days between the two specified datetimes.static final ChronologyDateTimeUtils.getInstantChronology(ReadableInstant instant) Gets the chronology from the specified instant object handling null.static final longDateTimeUtils.getInstantMillis(ReadableInstant instant) Gets the millisecond instant from the specified instant object handling null.static final ChronologyDateTimeUtils.getIntervalChronology(ReadableInstant start, ReadableInstant end) Gets the chronology from the specified instant based interval handling null.final intDateTimeZone.getOffset(ReadableInstant instant) Gets the millisecond offset to add to UTC to get local time.static HoursHours.hoursBetween(ReadableInstant start, ReadableInstant end) Creates aHoursrepresenting the number of whole hours between the two specified datetimes.booleanReadableInstant.isAfter(ReadableInstant instant) Is this instant after the instant passed in comparing solely by millisecond.booleanReadableInterval.isAfter(ReadableInstant instant) Is this time interval after the specified instant.booleanReadableInstant.isBefore(ReadableInstant instant) Is this instant before the instant passed in comparing solely by millisecond.booleanReadableInterval.isBefore(ReadableInstant instant) Is this time interval before the specified instant.booleanReadableInstant.isEqual(ReadableInstant instant) Is this instant equal to the instant passed in comparing solely by millisecond.booleanPartial.isMatch(ReadableInstant instant) Does this partial match the specified instant.static MinutesMinutes.minutesBetween(ReadableInstant start, ReadableInstant end) Creates aMinutesrepresenting the number of whole minutes between the two specified datetimes.static MonthsMonths.monthsBetween(ReadableInstant start, ReadableInstant end) Creates aMonthsrepresenting the number of whole months between the two specified datetimes.static SecondsSeconds.secondsBetween(ReadableInstant start, ReadableInstant end) Creates aSecondsrepresenting the number of whole seconds between the two specified datetimes.voidMutableDateTime.setDate(ReadableInstant instant) Set the date from another instant.voidMutableInterval.setEnd(ReadableInstant end) Sets the end of this time interval as an Instant.voidReadWritableInterval.setEnd(ReadableInstant instant) Sets the end of this time interval as an Instant.voidMutableInterval.setInterval(ReadableInstant start, ReadableInstant end) Sets this interval from two instants, replacing the chronology with that from the start instant.voidReadWritableInterval.setInterval(ReadableInstant startInstant, ReadableInstant endInstant) Sets this interval from two instants.voidMutableDateTime.setMillis(ReadableInstant instant) Sets the millisecond instant of this instant from another.voidReadWritableInstant.setMillis(ReadableInstant instant) Sets the millisecond instant of this instant from another.voidMutablePeriod.setPeriod(ReadableInstant start, ReadableInstant end) Sets all the fields in one go from two instants representing an interval.voidMutableInterval.setStart(ReadableInstant start) Sets the start of this time interval as an Instant.voidReadWritableInterval.setStart(ReadableInstant instant) Sets the start of this time interval as an Instant.voidMutableDateTime.setTime(ReadableInstant instant) Set the time from another instant.ReadablePartial.toDateTime(ReadableInstant baseInstant) Converts this partial to a full datetime by resolving it against another datetime.static WeeksWeeks.weeksBetween(ReadableInstant start, ReadableInstant end) Creates aWeeksrepresenting the number of whole weeks between the two specified datetimes.Interval.withEnd(ReadableInstant end) Creates a new interval with the specified end instant.Interval.withStart(ReadableInstant start) Creates a new interval with the specified start instant.static YearsYears.yearsBetween(ReadableInstant start, ReadableInstant end) Creates aYearsrepresenting the number of whole years between the two specified datetimes.Constructors in org.joda.time with parameters of type ReadableInstantModifierConstructorDescriptionDuration(ReadableInstant start, ReadableInstant end) Creates a duration from the given interval endpoints.Interval(ReadableDuration duration, ReadableInstant end) Constructs an interval from a millisecond duration and an end instant.Interval(ReadableInstant start, ReadableDuration duration) Constructs an interval from a start instant and a duration.Interval(ReadableInstant start, ReadableInstant end) Constructs an interval from a start and end instant.Interval(ReadableInstant start, ReadablePeriod period) Constructs an interval from a start instant and a time period.Interval(ReadablePeriod period, ReadableInstant end) Constructs an interval from a time period and an end instant.MutableInterval(ReadableDuration duration, ReadableInstant end) Constructs an interval from a millisecond duration and an end instant.MutableInterval(ReadableInstant start, ReadableDuration duration) Constructs an interval from a start instant and a duration.MutableInterval(ReadableInstant start, ReadableInstant end) Constructs an interval from a start and end instant.MutableInterval(ReadableInstant start, ReadablePeriod period) Constructs an interval from a start instant and a time period.MutableInterval(ReadablePeriod period, ReadableInstant end) Constructs an interval from a time period and an end instant.MutablePeriod(ReadableDuration duration, ReadableInstant endInstant) Creates a period from the given duration and end point.MutablePeriod(ReadableDuration duration, ReadableInstant endInstant, PeriodType type) Creates a period from the given duration and end point.MutablePeriod(ReadableInstant startInstant, ReadableDuration duration) Creates a period from the given start point and the duration.MutablePeriod(ReadableInstant startInstant, ReadableDuration duration, PeriodType type) Creates a period from the given start point and the duration.MutablePeriod(ReadableInstant startInstant, ReadableInstant endInstant) Creates a period from the given interval endpoints using the standard set of fields.MutablePeriod(ReadableInstant startInstant, ReadableInstant endInstant, PeriodType type) Creates a period from the given interval endpoints.Period(ReadableDuration duration, ReadableInstant endInstant) Creates a period from the given duration and end point.Period(ReadableDuration duration, ReadableInstant endInstant, PeriodType type) Creates a period from the given duration and end point.Period(ReadableInstant startInstant, ReadableDuration duration) Creates a period from the given start point and the duration.Period(ReadableInstant startInstant, ReadableDuration duration, PeriodType type) Creates a period from the given start point and the duration.Period(ReadableInstant startInstant, ReadableInstant endInstant) Creates a period between the given instants using the standard set of fields.Period(ReadableInstant startInstant, ReadableInstant endInstant, PeriodType type) Creates a period between the given instants. -
Uses of ReadableInstant in org.joda.time.base
Classes in org.joda.time.base that implement ReadableInstantModifier and TypeClassDescriptionclassAbstractDateTime provides the common behaviour for datetime classes.classAbstractInstant provides the common behaviour for instant classes.classBaseDateTime is an abstract implementation of ReadableDateTime that stores data inlongandChronologyfields.Methods in org.joda.time.base with parameters of type ReadableInstantModifier and TypeMethodDescriptionprotected static intBaseSingleFieldPeriod.between(ReadableInstant start, ReadableInstant end, DurationFieldType field) Calculates the number of whole units between the two specified datetimes.intAbstractInstant.compareTo(ReadableInstant other) Compares this object with the specified object for ascending millisecond instant order.booleanAbstractInterval.contains(ReadableInstant instant) Does this time interval contain the specified instant.booleanAbstractInstant.isAfter(ReadableInstant instant) Is this instant strictly after the instant passed in comparing solely by millisecond.booleanAbstractInterval.isAfter(ReadableInstant instant) Is this time interval after the specified instant.booleanAbstractInstant.isBefore(ReadableInstant instant) Is this instant strictly before the instant passed in comparing solely by millisecond.booleanAbstractInterval.isBefore(ReadableInstant instant) Is this time interval before the specified instant.booleanAbstractInstant.isEqual(ReadableInstant instant) Is this instant equal to the instant passed in comparing solely by millisecond.AbstractPartial.toDateTime(ReadableInstant baseInstant) Resolves this partial against another complete instant to create a new full instant.BasePeriod.toDurationFrom(ReadableInstant startInstant) Gets the total millisecond duration of this period relative to a start instant.BasePeriod.toDurationTo(ReadableInstant endInstant) Gets the total millisecond duration of this period relative to an end instant.BaseDuration.toIntervalFrom(ReadableInstant startInstant) Converts this duration to an Interval starting at the specified instant.BaseDuration.toIntervalTo(ReadableInstant endInstant) Converts this duration to an Interval ending at the specified instant.BaseDuration.toPeriodFrom(ReadableInstant startInstant) Converts this duration to a Period instance by adding the duration to a start instant to obtain an interval using the standard period type.BaseDuration.toPeriodFrom(ReadableInstant startInstant, PeriodType type) Converts this duration to a Period instance by adding the duration to a start instant to obtain an interval.BaseDuration.toPeriodTo(ReadableInstant endInstant) Converts this duration to a Period instance by subtracting the duration from an end instant to obtain an interval using the standard period type.BaseDuration.toPeriodTo(ReadableInstant endInstant, PeriodType type) Converts this duration to a Period instance by subtracting the duration from an end instant to obtain an interval using the standard period type.Constructors in org.joda.time.base with parameters of type ReadableInstantModifierConstructorDescriptionprotectedBaseDuration(ReadableInstant start, ReadableInstant end) Creates a duration from the given interval endpoints.protectedBaseInterval(ReadableDuration duration, ReadableInstant end) Constructs an interval from a millisecond duration and an end instant.protectedBaseInterval(ReadableInstant start, ReadableDuration duration) Constructs an interval from a start instant and a duration.protectedBaseInterval(ReadableInstant start, ReadableInstant end) Constructs an interval from a start and end instant.protectedBaseInterval(ReadableInstant start, ReadablePeriod period) Constructs an interval from a start instant and a time period.protectedBaseInterval(ReadablePeriod period, ReadableInstant end) Constructs an interval from a time period and an end instant.protectedBasePeriod(ReadableDuration duration, ReadableInstant endInstant, PeriodType type) Creates a period from the given duration and end point.protectedBasePeriod(ReadableInstant startInstant, ReadableDuration duration, PeriodType type) Creates a period from the given start point and duration.protectedBasePeriod(ReadableInstant startInstant, ReadableInstant endInstant, PeriodType type) Creates a period from the given interval endpoints. -
Uses of ReadableInstant in org.joda.time.chrono
Methods in org.joda.time.chrono with parameters of type ReadableInstantModifier and TypeMethodDescriptionstatic GJChronologyGJChronology.getInstance(DateTimeZone zone, ReadableInstant gregorianCutover) Factory method returns instances of the GJ cutover chronology.static GJChronologyGJChronology.getInstance(DateTimeZone zone, ReadableInstant gregorianCutover, int minDaysInFirstWeek) Factory method returns instances of the GJ cutover chronology. -
Uses of ReadableInstant in org.joda.time.field
Methods in org.joda.time.field with parameters of type ReadableInstantModifier and TypeMethodDescriptionintAbstractPartialFieldProperty.compareTo(ReadableInstant instant) Compare this field to the same field on another instant.intAbstractReadableInstantFieldProperty.compareTo(ReadableInstant instant) Compare this field to the same field on another instant.intAbstractReadableInstantFieldProperty.getDifference(ReadableInstant instant) Returns the difference between this field property instant and the one passed in, in the units of this field.longAbstractReadableInstantFieldProperty.getDifferenceAsLong(ReadableInstant instant) Returns the difference between this field property instant and the one passed in, in the units of this field. -
Uses of ReadableInstant in org.joda.time.format
Methods in org.joda.time.format with parameters of type ReadableInstantModifier and TypeMethodDescriptionDateTimeFormatter.print(ReadableInstant instant) Prints a ReadableInstant to a String.voidDateTimeFormatter.printTo(Writer out, ReadableInstant instant) Prints a ReadableInstant, using the chronology supplied by the instant.voidDateTimeFormatter.printTo(Appendable appendable, ReadableInstant instant) Prints a ReadableInstant, using the chronology supplied by the instant.voidDateTimeFormatter.printTo(StringBuffer buf, ReadableInstant instant) Prints a ReadableInstant, using the chronology supplied by the instant.voidDateTimeFormatter.printTo(StringBuilder buf, ReadableInstant instant) Prints a ReadableInstant, using the chronology supplied by the instant.