java.lang.Object
ch.tocco.nice2.templating.impl.freemarker.methods.NewDateMethod
All Implemented Interfaces:
freemarker.template.TemplateMethodModel, freemarker.template.TemplateMethodModelEx, freemarker.template.TemplateModel

public class NewDateMethod extends Object implements freemarker.template.TemplateMethodModelEx
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)/]
  • Constructor Details

  • Method Details

    • exec

      public LocalDateBean exec(List arguments) throws freemarker.template.TemplateModelException
      Specified by:
      exec in interface freemarker.template.TemplateMethodModel
      Specified by:
      exec in interface freemarker.template.TemplateMethodModelEx
      Throws:
      freemarker.template.TemplateModelException