Class DateWrapper
- java.lang.Object
-
- org.nuxeo.ecm.automation.core.scripting.DateWrapper
-
public class DateWrapper extends Object
- Author:
- Bogdan Stefanescu, Thierry Martins
-
-
Constructor Summary
Constructors Constructor Description DateWrapper()
DateWrapper(long date)
DateWrapper(Calendar date)
DateWrapper(Date date)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DateWrapper
dateWrapper(int unit, int value)
DateWrapper
days(int days)
String
format(String format)
Calendar
getCalendar()
Date
getDate()
int
getDay()
int
getHour()
int
getMinute()
int
getMonth()
int
getSecond()
long
getTime()
int
getWeek()
int
getYear()
DateWrapper
months(int months)
DateWrapper
seconds(int seconds)
String
toQueryString()
String
toString()
DateWrapper
weeks(int weeks)
DateWrapper
years(int years)
-
-
-
Field Detail
-
timestamp
protected final long timestamp
-
date
protected final Calendar date
-
-
Method Detail
-
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()
-
toQueryString
public String toQueryString()
-
-