Class DurationFunctions
java.lang.Object
ch.tocco.nice2.templating.spi.freemarker.bean.DurationFunctions
-
Method Summary
Modifier and TypeMethodDescriptionstatic Function
<org.joda.time.Period, org.joda.time.Period> absoluteValues
(org.joda.time.PeriodType periodType) getHours()
static Function
<org.joda.time.Period, org.joda.time.Period> minus
(org.joda.time.Period other) static Function
<org.joda.time.Period, org.joda.time.Period> normalizedStandard
(org.joda.time.PeriodType periodType) static Function
<org.joda.time.Period, org.joda.time.Period> plus
(org.joda.time.Period other) static Function
<org.joda.time.Period, org.joda.time.Period> plusHours
(int hours) static Function
<org.joda.time.Period, org.joda.time.Period> plusMinutes
(int minutes) static Function
<org.joda.time.Period, org.joda.time.Period> plusSeconds
(int seconds) print
(org.joda.time.PeriodType periodType, org.joda.time.format.PeriodFormatter periodFormatter)
-
Method Details
-
normalizedStandard
public static Function<org.joda.time.Period,org.joda.time.Period> normalizedStandard(org.joda.time.PeriodType periodType) -
plus
-
minus
-
plusHours
-
plusMinutes
-
plusSeconds
-
getHours
-
getMinutes
-
getSeconds
-
absoluteValues
public static Function<org.joda.time.Period,org.joda.time.Period> absoluteValues(org.joda.time.PeriodType periodType) -
print
-