public class DateCompareMethod extends Object implements freemarker.template.TemplateMethodModelEx
Perform a test to see how two dates compare, optionally offset by a specified number of milliseconds.
Usage: dateCompare(dateA, dateB) - 1 if dateA if greater than dateB dateCompare(dateA, dateB, millis) - 1 if dateA is greater than dateB by at least millis, else 0 dateCompare(dateA, dateB, millis, test) - same as above, but the 'test' variable is one of the following strings ">", "<", "==" - greater than, less than or equal - as the test to perform.
| Constructor and Description |
|---|
DateCompareMethod() |
public Object exec(List args) throws freemarker.template.TemplateModelException
exec in interface freemarker.template.TemplateMethodModelexec in interface freemarker.template.TemplateMethodModelExfreemarker.template.TemplateModelExceptionTemplateMethodModel.exec(java.util.List)Copyright © 2005–2016 Alfresco Software. All rights reserved.