Class SimpleDate

java.lang.Object
freemarker.template.SimpleDate
All Implemented Interfaces:
TemplateDateModel, TemplateModel

public class SimpleDate extends Object implements TemplateDateModel
A simple implementation of the TemplateDateModel interface. Note that this class is immutable.

This class is thread-safe.

  • Constructor Details

    • SimpleDate

      public SimpleDate(Date date)
      Creates a new date model wrapping the specified date object and having DATE type.
    • SimpleDate

      public SimpleDate(Time time)
      Creates a new date model wrapping the specified time object and having TIME type.
    • SimpleDate

      public SimpleDate(Timestamp datetime)
      Creates a new date model wrapping the specified time object and having DATETIME type.
    • SimpleDate

      public SimpleDate(Date date, int type)
      Creates a new date model wrapping the specified date object and having the specified type.
  • Method Details