|
Elexis API documentationVersion 2.1.6 as of January 22 2012 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.ralfebert.rcputils.types.DateHelper
public class DateHelper
Helper methods for dealing with java.util.Date
| Constructor Summary | |
|---|---|
DateHelper()
|
|
| Method Summary | |
|---|---|
static java.util.Date |
addDays(java.util.Date date,
int nDays)
Adds nDays to the given date and returns a new date |
static java.util.Date |
getDateByDayMonthYear(int day,
int month,
int year)
This method creates a new Date object with the given date |
static java.util.Date |
getDateWithoutTime(java.util.Date date)
Returns date without time (hour, minute, second, millisecond set to 0) |
static java.util.Date |
getToday()
Returns the date representing today (by system time) without time |
static java.util.Date |
getTomorrow()
Returns the date representing tomorrow (by system time) without time |
static boolean |
isEqualOrAfterTomorrow(java.util.Date d)
Returns true if the given date equals or is after tomorrow (ignoring the time) |
static java.util.Date |
max(java.util.Date d1,
java.util.Date d2)
Returns the latest date of the given dates |
static java.util.Date |
min(java.util.Date d1,
java.util.Date d2)
Returns the earliest date of the given dates |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DateHelper()
| Method Detail |
|---|
public static boolean isEqualOrAfterTomorrow(java.util.Date d)
public static java.util.Date getToday()
public static java.util.Date getTomorrow()
public static java.util.Date getDateWithoutTime(java.util.Date date)
date - date
public static java.util.Date max(java.util.Date d1,
java.util.Date d2)
d1 - d2 -
public static java.util.Date min(java.util.Date d1,
java.util.Date d2)
d1 - dated2 - date
public static java.util.Date addDays(java.util.Date date,
int nDays)
date - datenDays - number of days to add
public static java.util.Date getDateByDayMonthYear(int day,
int month,
int year)
day - day of the month 1..31month - month of the year 1..12year - year for digits, e.g. 2002
|
Elexis API documentationVersion 2.1.6 as of January 22 2012 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||