Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- approximateDuration(Instant) - Method in class org.ocpsoft.prettytime.PrettyTime
- approximateDuration(LocalDate) - Method in class org.ocpsoft.prettytime.PrettyTime
- approximateDuration(LocalDate, ZoneId) - Method in class org.ocpsoft.prettytime.PrettyTime
- approximateDuration(LocalDateTime) - Method in class org.ocpsoft.prettytime.PrettyTime
- approximateDuration(LocalDateTime, ZoneId) - Method in class org.ocpsoft.prettytime.PrettyTime
- approximateDuration(Date) - Method in class org.ocpsoft.prettytime.PrettyTime
C
- calculatePreciseDuration(Instant) - Method in class org.ocpsoft.prettytime.PrettyTime
- calculatePreciseDuration(LocalDate) - Method in class org.ocpsoft.prettytime.PrettyTime
- calculatePreciseDuration(LocalDate, ZoneId) - Method in class org.ocpsoft.prettytime.PrettyTime
- calculatePreciseDuration(LocalDateTime) - Method in class org.ocpsoft.prettytime.PrettyTime
-
Calculate to the precision of the smallest provided
TimeUnit, the exactDurationrepresented by the difference between the referenceInstantand the givenLocalDateTimeusing the system defaultZoneId. - calculatePreciseDuration(LocalDateTime, ZoneId) - Method in class org.ocpsoft.prettytime.PrettyTime
-
Calculate to the precision of the smallest provided
TimeUnit, the exactDurationrepresented by the difference between the referenceInstantand the givenLocalDateTimeusing the givenZoneId. - calculatePreciseDuration(Date) - Method in class org.ocpsoft.prettytime.PrettyTime
- Century - Class in org.ocpsoft.prettytime.units
- Century() - Constructor for class org.ocpsoft.prettytime.units.Century
- clearUnits() - Method in class org.ocpsoft.prettytime.PrettyTime
-
Remove all registered
TimeUnitinstances.
D
- Day - Class in org.ocpsoft.prettytime.units
- Day() - Constructor for class org.ocpsoft.prettytime.units.Day
- Decade - Class in org.ocpsoft.prettytime.units
- Decade() - Constructor for class org.ocpsoft.prettytime.units.Decade
- decorate(Duration, String) - Method in class org.ocpsoft.prettytime.format.SimpleTimeFormat
- decorate(Duration, String) - Method in class org.ocpsoft.prettytime.impl.ResourcesTimeFormat
- decorate(Duration, String) - Method in interface org.ocpsoft.prettytime.TimeFormat
-
Decorate with past or future prefix/suffix (with rounding)
- decorateUnrounded(Duration, String) - Method in class org.ocpsoft.prettytime.format.SimpleTimeFormat
- decorateUnrounded(Duration, String) - Method in class org.ocpsoft.prettytime.impl.ResourcesTimeFormat
- decorateUnrounded(Duration, String) - Method in interface org.ocpsoft.prettytime.TimeFormat
-
Decorate with past or future prefix/suffix (without rounding)
- Duration - Interface in org.ocpsoft.prettytime
-
Represents a quantity of any given
TimeUnit - DurationImpl - Class in org.ocpsoft.prettytime.impl
- DurationImpl() - Constructor for class org.ocpsoft.prettytime.impl.DurationImpl
E
- equals(Object) - Method in class org.ocpsoft.prettytime.impl.DurationImpl
- equals(Object) - Method in class org.ocpsoft.prettytime.impl.ResourcesTimeUnit
F
- format(Instant) - Method in class org.ocpsoft.prettytime.PrettyTime
-
Format the given
Instantobject. - format(LocalDate) - Method in class org.ocpsoft.prettytime.PrettyTime
- format(LocalDate, ZoneId) - Method in class org.ocpsoft.prettytime.PrettyTime
- format(LocalDateTime) - Method in class org.ocpsoft.prettytime.PrettyTime
-
Format the given
LocalDateTimeobject using the system defaultZoneId. - format(LocalDateTime, ZoneId) - Method in class org.ocpsoft.prettytime.PrettyTime
-
Format the given
LocalDateTimeobject using the givenZoneId. - format(OffsetDateTime) - Method in class org.ocpsoft.prettytime.PrettyTime
-
Format the given
OffsetDateTimeobject. - format(ZonedDateTime) - Method in class org.ocpsoft.prettytime.PrettyTime
-
Format the given
ZonedDateTimeobject. - format(Calendar) - Method in class org.ocpsoft.prettytime.PrettyTime
-
Format the given
Calendarobject. - format(Date) - Method in class org.ocpsoft.prettytime.PrettyTime
-
Format the given
Dateobject. - format(List<Duration>) - Method in class org.ocpsoft.prettytime.PrettyTime
- format(Duration) - Method in class org.ocpsoft.prettytime.format.SimpleTimeFormat
- format(Duration) - Method in class org.ocpsoft.prettytime.impl.ResourcesTimeFormat
- format(Duration) - Method in class org.ocpsoft.prettytime.PrettyTime
- format(Duration) - Method in interface org.ocpsoft.prettytime.TimeFormat
-
Given a populated
Durationobject. - formatDuration(Instant) - Method in class org.ocpsoft.prettytime.PrettyTime
- formatDuration(LocalDate) - Method in class org.ocpsoft.prettytime.PrettyTime
- formatDuration(LocalDate, ZoneId) - Method in class org.ocpsoft.prettytime.PrettyTime
- formatDuration(LocalDateTime) - Method in class org.ocpsoft.prettytime.PrettyTime
-
Format the given
LocalDateTimeusing the system defaultZoneIdand return a non-relative (not decorated with past or future tense)Stringfor the approximate duration of its difference between the referenceInstant. - formatDuration(LocalDateTime, ZoneId) - Method in class org.ocpsoft.prettytime.PrettyTime
-
Format the given
LocalDateTimeusing the givenZoneIdand return a non-relative (not decorated with past or future tense)Stringfor the approximate duration of its difference between the referenceDate. - formatDuration(OffsetDateTime) - Method in class org.ocpsoft.prettytime.PrettyTime
- formatDuration(ZonedDateTime) - Method in class org.ocpsoft.prettytime.PrettyTime
- formatDuration(Calendar) - Method in class org.ocpsoft.prettytime.PrettyTime
- formatDuration(Date) - Method in class org.ocpsoft.prettytime.PrettyTime
- formatDuration(List<Duration>) - Method in class org.ocpsoft.prettytime.PrettyTime
- formatDuration(Duration) - Method in class org.ocpsoft.prettytime.PrettyTime
- formatDurationUnrounded(Instant) - Method in class org.ocpsoft.prettytime.PrettyTime
- formatDurationUnrounded(LocalDate) - Method in class org.ocpsoft.prettytime.PrettyTime
- formatDurationUnrounded(LocalDate, ZoneId) - Method in class org.ocpsoft.prettytime.PrettyTime
- formatDurationUnrounded(LocalDateTime) - Method in class org.ocpsoft.prettytime.PrettyTime
-
Format the given
LocalDateTimeusing the system defaultZoneIdand return a non-relative (not decorated with past or future tense)Stringfor the approximate duration of its difference between the referenceInstant. - formatDurationUnrounded(LocalDateTime, ZoneId) - Method in class org.ocpsoft.prettytime.PrettyTime
-
Format the given
LocalDateTimeusing the givenZoneIdand return a non-relative (not decorated with past or future tense)Stringfor the approximate duration of its difference between the referenceDate. - formatDurationUnrounded(OffsetDateTime) - Method in class org.ocpsoft.prettytime.PrettyTime
-
Format the given
OffsetDateTimeand return a non-relative (not decorated with past or future tense)Stringfor the approximate duration of its difference between the referenceInstant. - formatDurationUnrounded(ZonedDateTime) - Method in class org.ocpsoft.prettytime.PrettyTime
-
Format the given
ZonedDateTimeand return a non-relative (not decorated with past or future tense)Stringfor the approximate duration of its difference between the referenceInstant. - formatDurationUnrounded(Calendar) - Method in class org.ocpsoft.prettytime.PrettyTime
- formatDurationUnrounded(Date) - Method in class org.ocpsoft.prettytime.PrettyTime
- formatDurationUnrounded(List<Duration>) - Method in class org.ocpsoft.prettytime.PrettyTime
- formatDurationUnrounded(Duration) - Method in class org.ocpsoft.prettytime.PrettyTime
- formatUnrounded(Instant) - Method in class org.ocpsoft.prettytime.PrettyTime
-
Format the given
Instantobject. - formatUnrounded(LocalDate) - Method in class org.ocpsoft.prettytime.PrettyTime
- formatUnrounded(LocalDate, ZoneId) - Method in class org.ocpsoft.prettytime.PrettyTime
- formatUnrounded(LocalDateTime) - Method in class org.ocpsoft.prettytime.PrettyTime
-
Format the given
LocalDateTimeobject using the system defaultZoneId. - formatUnrounded(LocalDateTime, ZoneId) - Method in class org.ocpsoft.prettytime.PrettyTime
-
Format the given
LocalDateTimeobject using the givenZoneId. - formatUnrounded(OffsetDateTime) - Method in class org.ocpsoft.prettytime.PrettyTime
-
Format the given
OffsetDateTimeobject. - formatUnrounded(ZonedDateTime) - Method in class org.ocpsoft.prettytime.PrettyTime
-
Format the given
ZonedDateTimeobject. - formatUnrounded(Calendar) - Method in class org.ocpsoft.prettytime.PrettyTime
-
Format the given
Calendarobject. - formatUnrounded(Date) - Method in class org.ocpsoft.prettytime.PrettyTime
-
Format the given
Dateobject. - formatUnrounded(List<Duration>) - Method in class org.ocpsoft.prettytime.PrettyTime
- formatUnrounded(Duration) - Method in class org.ocpsoft.prettytime.format.SimpleTimeFormat
- formatUnrounded(Duration) - Method in class org.ocpsoft.prettytime.impl.ResourcesTimeFormat
- formatUnrounded(Duration) - Method in class org.ocpsoft.prettytime.PrettyTime
- formatUnrounded(Duration) - Method in interface org.ocpsoft.prettytime.TimeFormat
-
Given a populated
Durationobject.
G
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_ar
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_az
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_bg
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_bn
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_ca
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_cs
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_da
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_de
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_el
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_en
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_eo
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_es
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_et
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_fa
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_fi
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_fr
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_gl
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_he
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_hi
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_hr
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_hu
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_in
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_it
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_iw
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_ja
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_kk
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_km
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_ko
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_mm
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_ms
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_nl
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_no
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_pa
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_pl
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_pt
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_ro
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_ru
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_sk
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_sl
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_so
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_sq
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_sr_Latn
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_sv
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_th
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_tk_TM
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_tr
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_uk
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_ur
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_uy
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_vi
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_zh_HK
- getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_zh_TW
-
Returns an
Objectarray containing the resources of thisListResourceBundle. - getContents() - Method in class org.ocpsoft.prettytime.i18n.Resources_zh
- getDelta() - Method in interface org.ocpsoft.prettytime.Duration
-
Return the number of milliseconds left over when calculating the number of
TimeUnit's that fit into the given time range. - getDelta() - Method in class org.ocpsoft.prettytime.impl.DurationImpl
- getFormat(TimeUnit) - Method in class org.ocpsoft.prettytime.PrettyTime
- getFormatFor(TimeUnit) - Method in class org.ocpsoft.prettytime.i18n.Resources_cs
- getFormatFor(TimeUnit) - Method in class org.ocpsoft.prettytime.i18n.Resources_de
- getFormatFor(TimeUnit) - Method in class org.ocpsoft.prettytime.i18n.Resources_fi
- getFormatFor(TimeUnit) - Method in class org.ocpsoft.prettytime.i18n.Resources_hr
- getFormatFor(TimeUnit) - Method in class org.ocpsoft.prettytime.i18n.Resources_ja
- getFormatFor(TimeUnit) - Method in class org.ocpsoft.prettytime.i18n.Resources_kk
- getFormatFor(TimeUnit) - Method in class org.ocpsoft.prettytime.i18n.Resources_pl
- getFormatFor(TimeUnit) - Method in class org.ocpsoft.prettytime.i18n.Resources_ru
- getFormatFor(TimeUnit) - Method in class org.ocpsoft.prettytime.i18n.Resources_sk
- getFormatFor(TimeUnit) - Method in class org.ocpsoft.prettytime.i18n.Resources_uk
- getFormatFor(TimeUnit) - Method in interface org.ocpsoft.prettytime.impl.TimeFormatProvider
-
Return the appropriate
TimeFormatfor the givenTimeUnit - getGramaticallyCorrectName(Duration, boolean) - Method in class org.ocpsoft.prettytime.format.SimpleTimeFormat
- getLocale() - Method in class org.ocpsoft.prettytime.PrettyTime
-
Get the currently configured
Localefor thisPrettyTimeobject. - getMaxQuantity() - Method in class org.ocpsoft.prettytime.impl.ResourcesTimeUnit
- getMaxQuantity() - Method in interface org.ocpsoft.prettytime.TimeUnit
-
The maximum quantity of this Unit to be used as a threshold for the next largest Unit (e.g.
- getMillisPerUnit() - Method in class org.ocpsoft.prettytime.impl.ResourcesTimeUnit
- getMillisPerUnit() - Method in interface org.ocpsoft.prettytime.TimeUnit
-
The number of milliseconds represented by each instance of this TimeUnit.
- getPattern() - Method in class org.ocpsoft.prettytime.format.SimpleTimeFormat
- getPattern(long) - Method in class org.ocpsoft.prettytime.format.SimpleTimeFormat
- getQuantity() - Method in interface org.ocpsoft.prettytime.Duration
-
Return the calculated quantity of
TimeUnitinstances. - getQuantity() - Method in class org.ocpsoft.prettytime.impl.DurationImpl
- getQuantity(Duration, boolean) - Method in class org.ocpsoft.prettytime.format.SimpleTimeFormat
- getQuantityRounded(int) - Method in interface org.ocpsoft.prettytime.Duration
-
Return the calculated quantity of
TimeUnitinstances, rounded up ifDuration.getDelta()is greater than or equal to the given tolerance. - getQuantityRounded(int) - Method in class org.ocpsoft.prettytime.impl.DurationImpl
- getReference() - Method in class org.ocpsoft.prettytime.PrettyTime
- getReferenceAsLegacyDate() - Method in class org.ocpsoft.prettytime.PrettyTime
- getResourceBundleName() - Method in class org.ocpsoft.prettytime.impl.ResourcesTimeUnit
-
Return the name of the resource bundle from which this unit's format should be loaded.
- getResourceKeyPrefix() - Method in class org.ocpsoft.prettytime.impl.ResourcesTimeUnit
-
Return the time-unit prefix to specify which value to load from the bundle.
- getResourceKeyPrefix() - Method in class org.ocpsoft.prettytime.units.Century
- getResourceKeyPrefix() - Method in class org.ocpsoft.prettytime.units.Day
- getResourceKeyPrefix() - Method in class org.ocpsoft.prettytime.units.Decade
- getResourceKeyPrefix() - Method in class org.ocpsoft.prettytime.units.Hour
- getResourceKeyPrefix() - Method in class org.ocpsoft.prettytime.units.JustNow
- getResourceKeyPrefix() - Method in class org.ocpsoft.prettytime.units.Millennium
- getResourceKeyPrefix() - Method in class org.ocpsoft.prettytime.units.Millisecond
- getResourceKeyPrefix() - Method in class org.ocpsoft.prettytime.units.Minute
- getResourceKeyPrefix() - Method in class org.ocpsoft.prettytime.units.Month
- getResourceKeyPrefix() - Method in class org.ocpsoft.prettytime.units.Second
- getResourceKeyPrefix() - Method in class org.ocpsoft.prettytime.units.Week
- getResourceKeyPrefix() - Method in class org.ocpsoft.prettytime.units.Year
- getUnit() - Method in interface org.ocpsoft.prettytime.Duration
- getUnit() - Method in class org.ocpsoft.prettytime.impl.DurationImpl
- getUnit(Class<UNIT>) - Method in class org.ocpsoft.prettytime.PrettyTime
- getUnits() - Method in class org.ocpsoft.prettytime.PrettyTime
H
- hashCode() - Method in class org.ocpsoft.prettytime.impl.DurationImpl
- hashCode() - Method in class org.ocpsoft.prettytime.impl.ResourcesTimeUnit
- Hour - Class in org.ocpsoft.prettytime.units
- Hour() - Constructor for class org.ocpsoft.prettytime.units.Hour
I
- isInFuture() - Method in interface org.ocpsoft.prettytime.Duration
- isInFuture() - Method in class org.ocpsoft.prettytime.impl.DurationImpl
- isInPast() - Method in interface org.ocpsoft.prettytime.Duration
- isInPast() - Method in class org.ocpsoft.prettytime.impl.DurationImpl
- isPlural(Duration, boolean) - Method in class org.ocpsoft.prettytime.format.SimpleTimeFormat
- isPrecise() - Method in class org.ocpsoft.prettytime.impl.ResourcesTimeUnit
- isPrecise() - Method in interface org.ocpsoft.prettytime.TimeUnit
-
Whether or not this
TimeUnitrepresents a price measurement of time, or a general concept of time. - isPrecise() - Method in class org.ocpsoft.prettytime.units.JustNow
J
- JustNow - Class in org.ocpsoft.prettytime.units
- JustNow() - Constructor for class org.ocpsoft.prettytime.units.JustNow
L
- LocaleAware<TYPE> - Interface in org.ocpsoft.prettytime
-
An object that behaves differently for various
Localesettings.
M
- Millennium - Class in org.ocpsoft.prettytime.units
- Millennium() - Constructor for class org.ocpsoft.prettytime.units.Millennium
- Millisecond - Class in org.ocpsoft.prettytime.units
- Millisecond() - Constructor for class org.ocpsoft.prettytime.units.Millisecond
- Minute - Class in org.ocpsoft.prettytime.units
- Minute() - Constructor for class org.ocpsoft.prettytime.units.Minute
- Month - Class in org.ocpsoft.prettytime.units
- Month() - Constructor for class org.ocpsoft.prettytime.units.Month
O
- org.ocpsoft.prettytime - package org.ocpsoft.prettytime
- org.ocpsoft.prettytime.format - package org.ocpsoft.prettytime.format
- org.ocpsoft.prettytime.i18n - package org.ocpsoft.prettytime.i18n
- org.ocpsoft.prettytime.impl - package org.ocpsoft.prettytime.impl
- org.ocpsoft.prettytime.units - package org.ocpsoft.prettytime.units
P
- PrettyTime - Class in org.ocpsoft.prettytime
-
A utility for creating social-networking style timestamps.
- PrettyTime() - Constructor for class org.ocpsoft.prettytime.PrettyTime
-
Create a new
PrettyTimeinstance that will always use the current value ofSystem.currentTimeMillis()to represent the reference point forDatecomparison, and will useLocale.getDefault()as the selectedLocalefor language and dialect formatting. - PrettyTime(String) - Constructor for class org.ocpsoft.prettytime.PrettyTime
-
Create a new
PrettyTimeinstance that will always use the current value ofSystem.currentTimeMillis()to represent the reference point forDatecomparison, and will useLocale.getDefault()as the selectedLocalefor language and dialect formatting. - PrettyTime(Instant) - Constructor for class org.ocpsoft.prettytime.PrettyTime
-
Create a new
PrettyTimeinstance that will use the givenInstanttimestamp to represent the reference point forInstantcomparison, and will useLocale.getDefault()as the selectedLocalefor language and dialect formatting. - PrettyTime(Instant, String) - Constructor for class org.ocpsoft.prettytime.PrettyTime
-
Create a new
PrettyTimeinstance that will use the givenInstanttimestamp to represent the reference point forInstantcomparison, and will useLocale.getDefault()as the selectedLocalefor language and dialect formatting. - PrettyTime(LocalDate) - Constructor for class org.ocpsoft.prettytime.PrettyTime
-
Create a new
PrettyTimeinstance that will use the givenLocalDateand the system defaultZoneIdto represent the reference point forInstantcomparison, and will useLocale.getDefault()as the selectedLocalefor language and dialect formatting. - PrettyTime(LocalDate, String) - Constructor for class org.ocpsoft.prettytime.PrettyTime
-
Create a new
PrettyTimeinstance that will use the givenLocalDateand the system defaultZoneIdto represent the reference point forInstantcomparison, and will useLocale.getDefault()as the selectedLocalefor language and dialect formatting. - PrettyTime(LocalDate, ZoneId) - Constructor for class org.ocpsoft.prettytime.PrettyTime
-
Create a new
PrettyTimeinstance that will use the givenLocalDateandZoneIdto represent the reference point forInstantcomparison, and will useLocale.getDefault()as the selectedLocalefor language and dialect formatting. - PrettyTime(LocalDate, ZoneId, String) - Constructor for class org.ocpsoft.prettytime.PrettyTime
-
Create a new
PrettyTimeinstance that will use the givenInstanttimestamp to represent the reference point forInstantcomparison, and will useLocale.getDefault()as the selectedLocalefor language and dialect formatting. - PrettyTime(LocalDateTime) - Constructor for class org.ocpsoft.prettytime.PrettyTime
-
Create a new
PrettyTimeinstance that will use the givenLocalDateTimeand the system defaultZoneIdto represent the reference point forInstantcomparison, and will useLocale.getDefault()as the selectedLocalefor language and dialect formatting. - PrettyTime(LocalDateTime, String) - Constructor for class org.ocpsoft.prettytime.PrettyTime
-
Create a new
PrettyTimeinstance that will use the givenLocalDateTimeand the system defaultZoneIdto represent the reference point forInstantcomparison, and will useLocale.getDefault()as the selectedLocalefor language and dialect formatting. - PrettyTime(LocalDateTime, ZoneId) - Constructor for class org.ocpsoft.prettytime.PrettyTime
-
Create a new
PrettyTimeinstance that will use the givenLocalDateTimeandZoneIdto represent the reference point forInstantcomparison, and will useLocale.getDefault()as the selectedLocalefor language and dialect formatting. - PrettyTime(LocalDateTime, ZoneId, String) - Constructor for class org.ocpsoft.prettytime.PrettyTime
-
Create a new
PrettyTimeinstance that will use the givenLocalDateTimeandZoneIdto represent the reference point forInstantcomparison, and will useLocale.getDefault()as the selectedLocalefor language and dialect formatting. - PrettyTime(Date) - Constructor for class org.ocpsoft.prettytime.PrettyTime
-
Create a new
PrettyTimeinstance that will use the givenDatetimestamp to represent the reference point forDatecomparison, and will useLocale.getDefault()as the selectedLocalefor language and dialect formatting. - PrettyTime(Date, String) - Constructor for class org.ocpsoft.prettytime.PrettyTime
-
Create a new
PrettyTimeinstance that will use the givenDatetimestamp to represent the reference point forDatecomparison, and will useLocale.getDefault()as the selectedLocalefor language and dialect formatting. - PrettyTime(Date, Locale) - Constructor for class org.ocpsoft.prettytime.PrettyTime
-
Construct a new
PrettyTimeinstance that will use the givenDatetimestamp to represent the reference point forDatecomparison, and will use the givenLocaleinstead of the system default. - PrettyTime(Date, Locale, String) - Constructor for class org.ocpsoft.prettytime.PrettyTime
-
Construct a new
PrettyTimeinstance that will use the givenDatetimestamp to represent the reference point forDatecomparison, and will use the givenLocaleinstead of the system default. - PrettyTime(Locale) - Constructor for class org.ocpsoft.prettytime.PrettyTime
-
Construct a new
PrettyTimeinstance that will always use the current value ofSystem.currentTimeMillis()to represent the reference point forDatecomparison. - PrettyTime(Locale, String) - Constructor for class org.ocpsoft.prettytime.PrettyTime
-
Construct a new
PrettyTimeinstance that will always use the current value ofSystem.currentTimeMillis()to represent the reference point forDatecomparison.
Q
- QUANTITY - Static variable in class org.ocpsoft.prettytime.format.SimpleTimeFormat
R
- registerUnit(TimeUnit, TimeFormat) - Method in class org.ocpsoft.prettytime.PrettyTime
-
Register the given
TimeUnitand correspondingTimeFormatinstance to be used in calculations. - removeUnit(Class<UNIT>) - Method in class org.ocpsoft.prettytime.PrettyTime
-
Removes the mapping for the given
TimeUnittype. - removeUnit(TimeUnit) - Method in class org.ocpsoft.prettytime.PrettyTime
-
Removes the mapping for the given
TimeUnit. - Resources - Class in org.ocpsoft.prettytime.i18n
-
Default resource bundle (English.)
- Resources() - Constructor for class org.ocpsoft.prettytime.i18n.Resources
- Resources_ar - Class in org.ocpsoft.prettytime.i18n
- Resources_ar() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_ar
- Resources_az - Class in org.ocpsoft.prettytime.i18n
- Resources_az() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_az
- Resources_bg - Class in org.ocpsoft.prettytime.i18n
- Resources_bg() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_bg
- Resources_bn - Class in org.ocpsoft.prettytime.i18n
- Resources_bn() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_bn
- Resources_ca - Class in org.ocpsoft.prettytime.i18n
- Resources_ca() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_ca
- Resources_cs - Class in org.ocpsoft.prettytime.i18n
- Resources_cs() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_cs
- Resources_da - Class in org.ocpsoft.prettytime.i18n
- Resources_da() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_da
- Resources_de - Class in org.ocpsoft.prettytime.i18n
- Resources_de() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_de
- Resources_el - Class in org.ocpsoft.prettytime.i18n
- Resources_el() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_el
- Resources_en - Class in org.ocpsoft.prettytime.i18n
- Resources_en() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_en
- Resources_eo - Class in org.ocpsoft.prettytime.i18n
- Resources_eo() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_eo
- Resources_es - Class in org.ocpsoft.prettytime.i18n
- Resources_es() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_es
- Resources_et - Class in org.ocpsoft.prettytime.i18n
- Resources_et() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_et
- Resources_fa - Class in org.ocpsoft.prettytime.i18n
- Resources_fa() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_fa
- Resources_fi - Class in org.ocpsoft.prettytime.i18n
- Resources_fi() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_fi
- Resources_fr - Class in org.ocpsoft.prettytime.i18n
- Resources_fr() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_fr
- Resources_gl - Class in org.ocpsoft.prettytime.i18n
- Resources_gl() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_gl
- Resources_he - Class in org.ocpsoft.prettytime.i18n
- Resources_he() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_he
- Resources_hi - Class in org.ocpsoft.prettytime.i18n
- Resources_hi() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_hi
- Resources_hr - Class in org.ocpsoft.prettytime.i18n
- Resources_hr() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_hr
- Resources_hu - Class in org.ocpsoft.prettytime.i18n
- Resources_hu() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_hu
- Resources_in - Class in org.ocpsoft.prettytime.i18n
-
Resource for Indonesian language.
- Resources_in() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_in
- Resources_it - Class in org.ocpsoft.prettytime.i18n
- Resources_it() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_it
- Resources_iw - Class in org.ocpsoft.prettytime.i18n
- Resources_iw() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_iw
- Resources_ja - Class in org.ocpsoft.prettytime.i18n
- Resources_ja() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_ja
- Resources_kk - Class in org.ocpsoft.prettytime.i18n
-
Created by Azimkhan Yerzhan on 5/8/2017
- Resources_kk() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_kk
- Resources_km - Class in org.ocpsoft.prettytime.i18n
- Resources_km() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_km
- Resources_ko - Class in org.ocpsoft.prettytime.i18n
- Resources_ko() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_ko
- Resources_mm - Class in org.ocpsoft.prettytime.i18n
- Resources_mm() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_mm
- Resources_ms - Class in org.ocpsoft.prettytime.i18n
- Resources_ms() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_ms
- Resources_nl - Class in org.ocpsoft.prettytime.i18n
- Resources_nl() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_nl
- Resources_no - Class in org.ocpsoft.prettytime.i18n
- Resources_no() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_no
- Resources_pa - Class in org.ocpsoft.prettytime.i18n
- Resources_pa() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_pa
- Resources_pl - Class in org.ocpsoft.prettytime.i18n
- Resources_pl() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_pl
- Resources_pt - Class in org.ocpsoft.prettytime.i18n
- Resources_pt() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_pt
- Resources_ro - Class in org.ocpsoft.prettytime.i18n
- Resources_ro() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_ro
- Resources_ru - Class in org.ocpsoft.prettytime.i18n
-
Created with IntelliJ IDEA.
- Resources_ru() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_ru
- Resources_sk - Class in org.ocpsoft.prettytime.i18n
- Resources_sk() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_sk
- Resources_sl - Class in org.ocpsoft.prettytime.i18n
- Resources_sl() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_sl
- Resources_so - Class in org.ocpsoft.prettytime.i18n
- Resources_so() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_so
- Resources_sq - Class in org.ocpsoft.prettytime.i18n
- Resources_sq() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_sq
- Resources_sr_Latn - Class in org.ocpsoft.prettytime.i18n
- Resources_sr_Latn() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_sr_Latn
- Resources_sv - Class in org.ocpsoft.prettytime.i18n
- Resources_sv() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_sv
- Resources_th - Class in org.ocpsoft.prettytime.i18n
-
Resource for Thailand language.
- Resources_th() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_th
- Resources_tk_TM - Class in org.ocpsoft.prettytime.i18n
-
Created with IntelliJ IDEA.
- Resources_tk_TM() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_tk_TM
- Resources_tr - Class in org.ocpsoft.prettytime.i18n
- Resources_tr() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_tr
- Resources_uk - Class in org.ocpsoft.prettytime.i18n
-
Created with IntelliJ IDEA.
- Resources_uk() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_uk
- Resources_ur - Class in org.ocpsoft.prettytime.i18n
- Resources_ur() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_ur
- Resources_uy - Class in org.ocpsoft.prettytime.i18n
-
Created with IntelliJ IDEA.
- Resources_uy() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_uy
- Resources_vi - Class in org.ocpsoft.prettytime.i18n
- Resources_vi() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_vi
- Resources_zh - Class in org.ocpsoft.prettytime.i18n
- Resources_zh() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_zh
- Resources_zh_HK - Class in org.ocpsoft.prettytime.i18n
- Resources_zh_HK() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_zh_HK
- Resources_zh_TW - Class in org.ocpsoft.prettytime.i18n
-
Created by edward_chiang on 13/6/27.
- Resources_zh_TW() - Constructor for class org.ocpsoft.prettytime.i18n.Resources_zh_TW
- ResourcesTimeFormat - Class in org.ocpsoft.prettytime.impl
-
Represents a simple method of formatting a specific
Durationof time - ResourcesTimeFormat(ResourcesTimeUnit) - Constructor for class org.ocpsoft.prettytime.impl.ResourcesTimeFormat
- ResourcesTimeFormat(ResourcesTimeUnit, String) - Constructor for class org.ocpsoft.prettytime.impl.ResourcesTimeFormat
- ResourcesTimeUnit - Class in org.ocpsoft.prettytime.impl
- ResourcesTimeUnit() - Constructor for class org.ocpsoft.prettytime.impl.ResourcesTimeUnit
S
- Second - Class in org.ocpsoft.prettytime.units
- Second() - Constructor for class org.ocpsoft.prettytime.units.Second
- setDelta(long) - Method in class org.ocpsoft.prettytime.impl.DurationImpl
- setFuturePluralName(String) - Method in class org.ocpsoft.prettytime.format.SimpleTimeFormat
- setFuturePrefix(String) - Method in class org.ocpsoft.prettytime.format.SimpleTimeFormat
- setFutureSingularName(String) - Method in class org.ocpsoft.prettytime.format.SimpleTimeFormat
- setFutureSuffix(String) - Method in class org.ocpsoft.prettytime.format.SimpleTimeFormat
- setLocale(Locale) - Method in class org.ocpsoft.prettytime.format.SimpleTimeFormat
- setLocale(Locale) - Method in class org.ocpsoft.prettytime.impl.ResourcesTimeFormat
- setLocale(Locale) - Method in interface org.ocpsoft.prettytime.LocaleAware
-
Set the
Localefor which this instance should behave in. - setLocale(Locale) - Method in class org.ocpsoft.prettytime.PrettyTime
-
Set the the
Localefor thisPrettyTimeobject. - setMaxQuantity(long) - Method in class org.ocpsoft.prettytime.impl.ResourcesTimeUnit
- setMillisPerUnit(long) - Method in class org.ocpsoft.prettytime.impl.ResourcesTimeUnit
- setPastPluralName(String) - Method in class org.ocpsoft.prettytime.format.SimpleTimeFormat
- setPastPrefix(String) - Method in class org.ocpsoft.prettytime.format.SimpleTimeFormat
- setPastSingularName(String) - Method in class org.ocpsoft.prettytime.format.SimpleTimeFormat
- setPastSuffix(String) - Method in class org.ocpsoft.prettytime.format.SimpleTimeFormat
- setPattern(String) - Method in class org.ocpsoft.prettytime.format.SimpleTimeFormat
- setPluralName(String) - Method in class org.ocpsoft.prettytime.format.SimpleTimeFormat
- setQuantity(long) - Method in class org.ocpsoft.prettytime.impl.DurationImpl
- setReference(Instant) - Method in class org.ocpsoft.prettytime.PrettyTime
-
Set the reference
Instant. - setReference(LocalDate) - Method in class org.ocpsoft.prettytime.PrettyTime
- setReference(LocalDate, ZoneId) - Method in class org.ocpsoft.prettytime.PrettyTime
- setReference(LocalDateTime) - Method in class org.ocpsoft.prettytime.PrettyTime
- setReference(LocalDateTime, ZoneId) - Method in class org.ocpsoft.prettytime.PrettyTime
- setReference(Date) - Method in class org.ocpsoft.prettytime.PrettyTime
- setRoundingTolerance(int) - Method in class org.ocpsoft.prettytime.format.SimpleTimeFormat
-
The percentage of the current
TimeUnit.getMillisPerUnit() for which the quantity may be rounded up by one. - setSingularName(String) - Method in class org.ocpsoft.prettytime.format.SimpleTimeFormat
- setUnit(TimeUnit) - Method in class org.ocpsoft.prettytime.impl.DurationImpl
- setUnits(ResourcesTimeUnit...) - Method in class org.ocpsoft.prettytime.PrettyTime
- setUnits(TimeFormat, TimeUnit...) - Method in class org.ocpsoft.prettytime.PrettyTime
- SIGN - Static variable in class org.ocpsoft.prettytime.format.SimpleTimeFormat
- SimpleTimeFormat - Class in org.ocpsoft.prettytime.format
-
Represents a simple method of formatting a specific
Durationof time - SimpleTimeFormat() - Constructor for class org.ocpsoft.prettytime.format.SimpleTimeFormat
T
- TimeFormat - Interface in org.ocpsoft.prettytime
-
Format a Duration object.
- TimeFormatProvider - Interface in org.ocpsoft.prettytime.impl
-
Produces time formats.
- TimeUnit - Interface in org.ocpsoft.prettytime
-
Defines a Unit of time (e.g.
- toString() - Method in class org.ocpsoft.prettytime.format.SimpleTimeFormat
- toString() - Method in class org.ocpsoft.prettytime.impl.DurationImpl
- toString() - Method in class org.ocpsoft.prettytime.impl.ResourcesTimeUnit
- toString() - Method in class org.ocpsoft.prettytime.PrettyTime
U
- UNIT - Static variable in class org.ocpsoft.prettytime.format.SimpleTimeFormat
W
- Week - Class in org.ocpsoft.prettytime.units
- Week() - Constructor for class org.ocpsoft.prettytime.units.Week
Y
- Year - Class in org.ocpsoft.prettytime.units
- Year() - Constructor for class org.ocpsoft.prettytime.units.Year
All Classes and Interfaces|All Packages|Constant Field Values