freemarker.template
public interface TemplateDateModel extends TemplateModel
Modifier and Type | Field and Description |
---|---|
static int |
DATE
The date model represents a date-only value.
|
static int |
DATETIME
The date model represents a datetime value.
|
static int |
TIME
The date model represents a time-only value.
|
static List |
TYPE_NAMES |
static int |
UNKNOWN
It is not known whether the date model represents a time-only,
a date-only, or a datetime value.
|
NOTHING
Modifier and Type | Method and Description |
---|---|
Date |
getAsDate()
Returns the date value.
|
int |
getDateType()
Returns the type of the date.
|
static final int UNKNOWN
static final int TIME
static final int DATE
static final int DATETIME
static final List TYPE_NAMES
Date getAsDate() throws TemplateModelException
Date
instance associated with this date model.TemplateModelException
int getDateType()