Uses of Interface
org.ocpsoft.prettytime.Duration
Packages that use Duration
Package
Description
-
Uses of Duration in org.ocpsoft.prettytime
Methods in org.ocpsoft.prettytime that return DurationModifier and TypeMethodDescriptionPrettyTime.approximateDuration(Instant then) PrettyTime.approximateDuration(LocalDate then) PrettyTime.approximateDuration(LocalDate then, ZoneId zoneId) PrettyTime.approximateDuration(LocalDateTime then) PrettyTime.approximateDuration(LocalDateTime then, ZoneId zoneId) PrettyTime.approximateDuration(Date then) Methods in org.ocpsoft.prettytime that return types with arguments of type DurationModifier and TypeMethodDescriptionPrettyTime.calculatePreciseDuration(Instant then) PrettyTime.calculatePreciseDuration(LocalDate then) PrettyTime.calculatePreciseDuration(LocalDate then, ZoneId zoneId) PrettyTime.calculatePreciseDuration(LocalDateTime then) Calculate to the precision of the smallest providedTimeUnit, the exactDurationrepresented by the difference between the referenceInstantand the givenLocalDateTimeusing the system defaultZoneId.PrettyTime.calculatePreciseDuration(LocalDateTime then, ZoneId zoneId) Calculate to the precision of the smallest providedTimeUnit, the exactDurationrepresented by the difference between the referenceInstantand the givenLocalDateTimeusing the givenZoneId.PrettyTime.calculatePreciseDuration(Date then) Methods in org.ocpsoft.prettytime with parameters of type DurationModifier and TypeMethodDescriptionDecorate with past or future prefix/suffix (with rounding)TimeFormat.decorateUnrounded(Duration duration, String time) Decorate with past or future prefix/suffix (without rounding)Given a populatedDurationobject.PrettyTime.formatDuration(Duration duration) PrettyTime.formatDurationUnrounded(Duration duration) PrettyTime.formatUnrounded(Duration duration) TimeFormat.formatUnrounded(Duration duration) Given a populatedDurationobject.Method parameters in org.ocpsoft.prettytime with type arguments of type DurationModifier and TypeMethodDescriptionPrettyTime.formatDuration(List<Duration> durations) PrettyTime.formatDurationUnrounded(List<Duration> durations) PrettyTime.formatUnrounded(List<Duration> durations) -
Uses of Duration in org.ocpsoft.prettytime.format
Methods in org.ocpsoft.prettytime.format with parameters of type DurationModifier and TypeMethodDescriptionSimpleTimeFormat.decorateUnrounded(Duration duration, String time) SimpleTimeFormat.formatUnrounded(Duration duration) protected StringSimpleTimeFormat.getGramaticallyCorrectName(Duration d, boolean round) protected longSimpleTimeFormat.getQuantity(Duration duration, boolean round) protected boolean -
Uses of Duration in org.ocpsoft.prettytime.impl
Classes in org.ocpsoft.prettytime.impl that implement DurationMethods in org.ocpsoft.prettytime.impl with parameters of type Duration