MCPcopy Create free account
hub / github.com/MenoData/Time4J / getPastPattern

Method getPastPattern

base/src/main/java/net/time4j/PrettyTime.java:1713–1720  ·  view source on GitHub ↗
(
        long amount,
        CalendarUnit unit
    )

Source from the content-addressed store, hash-verified

1711 }
1712
1713 private String getPastPattern(
1714 long amount,
1715 CalendarUnit unit
1716 ) {
1717 UnitPatterns patterns = UnitPatterns.of(this.locale);
1718 PluralCategory category = this.getCategory(amount);
1719 return patterns.getPatternInPast(category, this.shortStyle, unit);
1720 }
1721
1722 private String getFuturePattern(
1723 long amount,

Callers 3

printRelativeOrDateMethod · 0.95
printRelativeSecondsMethod · 0.95
printRelativeTimeMethod · 0.95

Calls 3

ofMethod · 0.95
getCategoryMethod · 0.95
getPatternInPastMethod · 0.95

Tested by

no test coverage detected