|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sigh.utils.dates.Dates
public class Dates
Constructor Summary | |
---|---|
Dates()
|
|
Dates(java.util.Date theDate)
|
|
Dates(long timeInMilliseconds)
|
Method Summary | |
---|---|
static int |
daysToFirstOfMonth()
|
static int |
daysToFirstOfMonth(java.util.Calendar aCalendar)
|
static int |
daysToFirstOfMonth(java.util.Date aDate)
|
static int |
daysToFirstOfMonth(int aMonth)
|
static int |
daysToFirstOfMonth(long timeInMilliseconds)
|
static boolean |
inLeapYear()
Returns true if this year is a leap year and the month is greater than February or the month is February and the day is greater than 28. |
static boolean |
inLeapYear(java.util.Calendar aCalendar)
Returns true if this year is a leap year and the month is greater than February or the month is February and the day is greater than 28. |
static boolean |
inLeapYear(java.util.Date aDate)
Returns true if this year is a leap year and the month is greater than February or the month is February and the day is greater than 28. |
static boolean |
inLeapYear(long timeInMilliseconds)
Returns true if this year is a leap year and the month is greater than February or the month is February and the day is greater than 28. |
boolean |
isLeapYear()
Returns boolean true if the current year can be a leap year otherwise returns boolean false. |
boolean |
isLeapYear(java.util.Calendar aCalendar)
|
boolean |
isLeapYear(java.util.Date aDate)
Returns true if year represented in aDate is a leap year Returns false if not. |
boolean |
isLeapYear(int aYear)
Returns true if the actual parameter supplied can be a leap year. |
static int |
lastDayInMonth(int Month)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Dates()
public Dates(java.util.Date theDate)
theDate
- public Dates(long timeInMilliseconds)
timeInMilliseconds
- Method Detail |
---|
public static int lastDayInMonth(int Month)
Month
-
public static int daysToFirstOfMonth()
public static int daysToFirstOfMonth(int aMonth)
aMonth
-
public static int daysToFirstOfMonth(java.util.Date aDate)
aDate
-
public static int daysToFirstOfMonth(java.util.Calendar aCalendar)
aCalendar
-
public static int daysToFirstOfMonth(long timeInMilliseconds)
timeInMilliseconds
-
public boolean isLeapYear(java.util.Calendar aCalendar)
aCalendar
-
public boolean isLeapYear()
public boolean isLeapYear(int aYear)
aYear
-
public boolean isLeapYear(java.util.Date aDate)
aDate
-
public static boolean inLeapYear()
public static boolean inLeapYear(java.util.Calendar aCalendar)
aCalendar
-
public static boolean inLeapYear(java.util.Date aDate)
aDate
-
public static boolean inLeapYear(long timeInMilliseconds)
timeInMilliseconds
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |