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
-
Method Summary
Modifier and TypeMethodDescriptiondurationUntil
(DateTimeBean endDate) boolean
isAfter
(DateTimeBean other) boolean
isBefore
(DateTimeBean other) boolean
isEqual
(DateTimeBean other) plusDays
(int days) plusHours
(int hours) plusMinutes
(int minutes) plusMonths
(int months) plusSeconds
(int seconds) plusWeeks
(int weeks) plusYears
(int years) protected String
print
(org.joda.time.format.DateTimeFormatter formatter) toDate()
toString()
Methods inherited from class ch.tocco.nice2.templating.spi.freemarker.bean.AbstractDateBean
format, pattern, printInstant, printPartial, style
Methods 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:
print
in classAbstractDateBean<org.joda.time.DateTime>
-
plusSeconds
-
plusMinutes
-
plusHours
-
plusDays
-
plusMonths
-
plusWeeks
-
plusYears
-
toDate
-
durationUntil
-
isAfter
-
isBefore
-
isEqual
-
toString
-