freemarker.template
Class SimpleDate
java.lang.Object
freemarker.template.SimpleDate
- TemplateDateModel, TemplateModel
public class SimpleDate
extends java.lang.Object
A simple implementation of the
TemplateDateModel
interface. Note that this class is immutable.
This class is thread-safe.
$Id: SimpleDate.java,v 1.11 2004/03/13 13:05:09 ddekany Exp $
SimpleDate(java.sql.Date date) - Creates a new date model wrapping the specified date object and
having DATE type.
|
SimpleDate(java.sql.Time time) - Creates a new date model wrapping the specified time object and
having TIME type.
|
SimpleDate(java.sql.Timestamp datetime) - Creates a new date model wrapping the specified time object and
having DATETIME type.
|
SimpleDate(java.util.Date date, int type) - Creates a new date model wrapping the specified date object and
having the specified type.
|
SimpleDate
public SimpleDate(java.sql.Date date)
Creates a new date model wrapping the specified date object and
having DATE type.
SimpleDate
public SimpleDate(java.sql.Time time)
Creates a new date model wrapping the specified time object and
having TIME type.
SimpleDate
public SimpleDate(java.sql.Timestamp datetime)
Creates a new date model wrapping the specified time object and
having DATETIME type.
SimpleDate
public SimpleDate(java.util.Date date,
int type)
Creates a new date model wrapping the specified date object and
having the specified type.
toString
public String toString()