Class DateTimeFunctions

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

public final class DateTimeFunctions extends Object
  • Method Details

    • plusSeconds

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

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

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

      public static Function<org.joda.time.DateTime,org.joda.time.DateTime> plusDays(int days)
    • plusWeeks

      public static Function<org.joda.time.DateTime,org.joda.time.DateTime> plusWeeks(int weeks)
    • plusMonths

      public static Function<org.joda.time.DateTime,org.joda.time.DateTime> plusMonths(int months)
    • plusYears

      public static Function<org.joda.time.DateTime,org.joda.time.DateTime> plusYears(int years)
    • toLocalDate

      public static Function<org.joda.time.DateTime,org.joda.time.LocalDate> toLocalDate()
    • durationUntil

      public static Function<org.joda.time.DateTime,org.joda.time.Period> durationUntil(DateTimeBean endDate)