Class DurationFunctions

java.lang.Object
ch.tocco.nice2.templating.spi.freemarker.bean.DurationFunctions

public final class DurationFunctions extends Object
  • Method Details

    • normalizedStandard

      public static Function<org.joda.time.Period,org.joda.time.Period> normalizedStandard(org.joda.time.PeriodType periodType)
    • plus

      public static Function<org.joda.time.Period,org.joda.time.Period> plus(org.joda.time.Period other)
    • minus

      public static Function<org.joda.time.Period,org.joda.time.Period> minus(org.joda.time.Period other)
    • plusHours

      public static Function<org.joda.time.Period,org.joda.time.Period> plusHours(int hours)
    • plusMinutes

      public static Function<org.joda.time.Period,org.joda.time.Period> plusMinutes(int minutes)
    • plusSeconds

      public static Function<org.joda.time.Period,org.joda.time.Period> plusSeconds(int seconds)
    • getHours

      public static Function<org.joda.time.Period,Integer> getHours()
    • getMinutes

      public static Function<org.joda.time.Period,Integer> getMinutes()
    • getSeconds

      public static Function<org.joda.time.Period,Integer> getSeconds()
    • absoluteValues

      public static Function<org.joda.time.Period,org.joda.time.Period> absoluteValues(org.joda.time.PeriodType periodType)
    • print

      public static Function<org.joda.time.Period,String> print(org.joda.time.PeriodType periodType, org.joda.time.format.PeriodFormatter periodFormatter)