Class DateWrapper

java.lang.Object
org.nuxeo.ecm.automation.core.scripting.DateWrapper

public class DateWrapper extends Object
Author:
Bogdan Stefanescu, Thierry Martins
  • Field Details

    • timestamp

      protected final long timestamp
    • date

      protected final Calendar date
  • Constructor Details

    • DateWrapper

      public DateWrapper()
    • DateWrapper

      public DateWrapper(Calendar date)
    • DateWrapper

      public DateWrapper(Date date)
    • DateWrapper

      public DateWrapper(long date)
  • Method Details

    • months

      public DateWrapper months(int months)
    • days

      public DateWrapper days(int days)
    • years

      public DateWrapper years(int years)
    • dateWrapper

      protected DateWrapper dateWrapper(int unit, int value)
      Since:
      5.7
    • seconds

      public DateWrapper seconds(int seconds)
    • weeks

      public DateWrapper weeks(int weeks)
    • getCalendar

      public Calendar getCalendar()
    • getDate

      public Date getDate()
    • getTime

      public long getTime()
    • getYear

      public int getYear()
    • getMonth

      public int getMonth()
    • getDay

      public int getDay()
    • getMinute

      public int getMinute()
    • getHour

      public int getHour()
    • getSecond

      public int getSecond()
    • getWeek

      public int getWeek()
    • format

      public String format(String format)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toQueryString

      public String toQueryString()