Uses of Class
org.ocpsoft.prettytime.PrettyTime
Packages that use PrettyTime
-
Uses of PrettyTime in org.ocpsoft.prettytime
Methods in org.ocpsoft.prettytime that return PrettyTimeModifier and TypeMethodDescriptionPrettyTime.registerUnit(TimeUnit unit, TimeFormat format) Register the givenTimeUnitand correspondingTimeFormatinstance to be used in calculations.Set the theLocalefor thisPrettyTimeobject.PrettyTime.setReference(Instant timestamp) Set the referenceInstant.PrettyTime.setReference(LocalDate localDate) PrettyTime.setReference(LocalDate localDate, ZoneId zoneId) PrettyTime.setReference(LocalDateTime localDateTime) PrettyTime.setReference(LocalDateTime localDateTime, ZoneId zoneId) PrettyTime.setReference(Date timestamp) PrettyTime.setUnits(ResourcesTimeUnit... units) PrettyTime.setUnits(TimeFormat format, TimeUnit... units)