Class ISO8601DateFormatMethod
- java.lang.Object
-
- org.springframework.extensions.webscripts.ISO8601DateFormatMethod
-
- All Implemented Interfaces:
freemarker.template.TemplateMethodModel,freemarker.template.TemplateMethodModelEx,freemarker.template.TemplateModel
public class ISO8601DateFormatMethod extends java.lang.Object implements freemarker.template.TemplateMethodModelExNOTE: sourced from org.alfresco.repo.template.ISO8601DateFormatMethod.- Author:
- David Caruana, Kevin Roast
Custom FreeMarker Template language method.
Render Date to ISO8601 format.
Or parse ISO6801 format string date to a Date object.Usage: xmldate(Date date) xmldate(String date)
-
-
Constructor Summary
Constructors Constructor Description ISO8601DateFormatMethod()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectexec(java.util.List args)
-
-
-
Method Detail
-
exec
public java.lang.Object exec(java.util.List args) throws freemarker.template.TemplateModelException- Specified by:
execin interfacefreemarker.template.TemplateMethodModel- Specified by:
execin interfacefreemarker.template.TemplateMethodModelEx- Throws:
freemarker.template.TemplateModelException- See Also:
TemplateMethodModel.exec(java.util.List)
-
-