Class NewDateMethod
java.lang.Object
ch.tocco.nice2.templating.impl.freemarker.methods.NewDateMethod
- All Implemented Interfaces:
freemarker.template.TemplateMethodModel
,freemarker.template.TemplateMethodModelEx
,freemarker.template.TemplateModel
Create a new
LocalDateBean
.
Usage examples:
- [#assign now = newDate()/]
- [#assign fromDateParts = newDate(2016, 6, 21)/]
- [#assign fromString = newDate("2016-06-21")/]
- [#assign fromMillis = newDate(1466460000000)/]-
Field Summary
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
NewDateMethod
-
-
Method Details
-
exec
- Specified by:
exec
in interfacefreemarker.template.TemplateMethodModel
- Specified by:
exec
in interfacefreemarker.template.TemplateMethodModelEx
- Throws:
freemarker.template.TemplateModelException
-