public class Date extends Filter
BREAK, CONTINUE, rubyDateTimeFormat| Modifier | Constructor and Description |
|---|---|
protected |
Date() |
protected |
Date(CustomDateFormatSupport typeSupport) |
| Modifier and Type | Method and Description |
|---|---|
static void |
addDatePattern(java.lang.String pattern)
Adds a new Date-pattern to be used when parsing a string to a Date.
|
java.lang.Object |
apply(java.lang.Object value,
TemplateContext context,
java.lang.Object... params)
Applies the filter on the 'value', with the given 'context'.
|
static void |
removeDatePattern(java.lang.String pattern)
Removed a Date-pattern to be used when parsing a string to a Date.
|
static Filter |
withCustomDateType(CustomDateFormatSupport typeSupport) |
apply, get, getFilter, getFilters, getFilters, registerFilterareEqual, asArray, asBoolean, asFormattedNumber, asMap, asNumber, asString, asTemporal, canBeDouble, canBeInteger, isArray, isFalsy, isInteger, isMap, isNumber, isString, isTemporal, isTruthy, mapAsArray, temporalAsArrayprotected Date()
protected Date(CustomDateFormatSupport typeSupport)
public java.lang.Object apply(java.lang.Object value,
TemplateContext context,
java.lang.Object... params)
Filterpublic static void addDatePattern(java.lang.String pattern)
pattern - the pattern.public static void removeDatePattern(java.lang.String pattern)
pattern - the pattern.public static Filter withCustomDateType(CustomDateFormatSupport typeSupport)
Copyright © 2012–2021. All rights reserved.