Class DateTimeBean
java.lang.Object
ch.tocco.nice2.templating.spi.freemarker.bean.AbstractNullableBean<org.joda.time.DateTime>
ch.tocco.nice2.templating.spi.freemarker.bean.AbstractDateBean<org.joda.time.DateTime>
ch.tocco.nice2.templating.spi.freemarker.bean.DateTimeBean
- All Implemented Interfaces:
NullableBean
DateTime bean wrapper used as a datetime type in freemarker-
Field Summary
Fields inherited from class ch.tocco.nice2.templating.spi.freemarker.bean.AbstractNullableBean
delegate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondurationUntil(DateTimeBean endDate) booleanisAfter(DateTimeBean other) booleanisBefore(DateTimeBean other) booleanisEqual(DateTimeBean other) plusDays(int days) plusHours(int hours) plusMinutes(int minutes) plusMonths(int months) plusSeconds(int seconds) plusWeeks(int weeks) plusYears(int years) protected Stringprint(org.joda.time.format.DateTimeFormatter formatter) toDate()toString()Methods inherited from class ch.tocco.nice2.templating.spi.freemarker.bean.AbstractDateBean
format, pattern, printInstant, printPartial, styleMethods inherited from class ch.tocco.nice2.templating.spi.freemarker.bean.AbstractNullableBean
getDelegate, isNull, or, strict
-
Constructor Details
-
DateTimeBean
public DateTimeBean(org.joda.time.DateTime delegate)
-
-
Method Details
-
print
- Specified by:
printin classAbstractDateBean<org.joda.time.DateTime>
-
plusSeconds
-
plusMinutes
-
plusHours
-
plusDays
-
plusMonths
-
plusWeeks
-
plusYears
-
toDate
-
durationUntil
-
isAfter
-
isBefore
-
isEqual
-
toString
-