public class DateWrapper extends Object
Modifier and Type | Field and Description |
---|---|
protected Calendar |
date |
protected long |
timestamp |
Constructor and Description |
---|
DateWrapper() |
DateWrapper(Calendar date) |
DateWrapper(Date date) |
DateWrapper(long date) |
Modifier and Type | Method and 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() |
static void |
main(String[] args) |
DateWrapper |
months(int months) |
DateWrapper |
seconds(int seconds) |
String |
toQueryString() |
String |
toString() |
DateWrapper |
weeks(int weeks) |
DateWrapper |
years(int years) |
public DateWrapper()
public DateWrapper(Calendar date)
public DateWrapper(Date date)
public DateWrapper(long date)
public DateWrapper months(int months)
public DateWrapper days(int days)
public DateWrapper years(int years)
protected DateWrapper dateWrapper(int unit, int value)
public DateWrapper seconds(int seconds)
public DateWrapper weeks(int weeks)
public Calendar getCalendar()
public long getTime()
public int getYear()
public int getMonth()
public int getDay()
public int getMinute()
public int getHour()
public int getSecond()
public int getWeek()
public String toQueryString()
Copyright © 2015 Nuxeo SA. All rights reserved.