|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jsdsi.util.DateUtil
Static utility class for java.util.Dates.
Method Summary | |
static java.util.Date |
newDate()
Returns a new java.util.Date set to 'now' except that the milliseconds are zero |
static java.util.Date |
newDate(int yearChange)
Returns a zero-millisecond java.util.Date set to 'now' but with the YEAR modified by yearChange |
static java.util.Date |
newDate(int yearChange,
int monthChange)
Returns a zero-millisecond java.util.Date set to 'now' but with the YEAR modified by yearChange
and the MONTH modified by monthChange |
static java.util.Date |
newDate(int yearChange,
int monthChange,
int dayChange)
Returns a zero-millisecond java.util.Date set to 'now' but with the YEAR modified by yearChange,
the MONTH modified by monthChange, and the DAY modified by dayChange |
static java.util.Date |
newDate(int yearChange,
int monthChange,
int dayChange,
int hourChange)
|
static java.util.Date |
newDate(int yearChange,
int monthChange,
int dayChange,
int hourChange,
int minuteChange)
|
static java.util.Date |
newDate(int yearChange,
int monthChange,
int dayChange,
int hourChange,
int minuteChange,
int secondChange)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.util.Date newDate()
java.util.Date
set to 'now' except that the milliseconds are zero
public static java.util.Date newDate(int yearChange)
java.util.Date
set to 'now' but with the YEAR modified by yearChange
yearChange
- The value to change the year by
public static java.util.Date newDate(int yearChange, int monthChange)
java.util.Date
set to 'now' but with the YEAR modified by yearChange
and the MONTH modified by monthChange
yearChange
- monthChange
-
public static java.util.Date newDate(int yearChange, int monthChange, int dayChange)
java.util.Date
set to 'now' but with the YEAR modified by yearChange,
the MONTH modified by monthChange, and the DAY modified by dayChange
yearChange
- monthChange
- dayChange
-
public static java.util.Date newDate(int yearChange, int monthChange, int dayChange, int hourChange)
yearChange
- monthChange
- dayChange
- hourChange
-
public static java.util.Date newDate(int yearChange, int monthChange, int dayChange, int hourChange, int minuteChange)
yearChange
- monthChange
- dayChange
- hourChange
- minuteChange
-
public static java.util.Date newDate(int yearChange, int monthChange, int dayChange, int hourChange, int minuteChange, int secondChange)
yearChange
- monthChange
- dayChange
- hourChange
- minuteChange
- secondChange
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |