|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.extensions.webscripts.DateCompareMethod
public class DateCompareMethod
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.
Field Summary |
---|
Fields inherited from interface freemarker.template.TemplateModel |
---|
NOTHING |
Constructor Summary | |
---|---|
DateCompareMethod()
|
Method Summary | |
---|---|
Object |
exec(List args)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DateCompareMethod()
Method Detail |
---|
public Object exec(List args) throws freemarker.template.TemplateModelException
exec
in interface freemarker.template.TemplateMethodModel
freemarker.template.TemplateModelException
TemplateMethodModel.exec(java.util.List)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |