|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.jdbc.informix4.Day
Constructor Summary | |
Day()
Constructs today's date |
|
Day(int yyyy,
int m,
int d)
Constructs a specific date |
Method Summary | |
void |
advance(int n)
Advances this day by n days. |
void |
advanceMonths(int n)
Advances this day by n months worth of days. |
void |
advanceYears(int n)
Advances this day by n years worth of days. |
java.lang.Object |
clone()
Makes a bitwise copy of a Day object |
int |
daysBetween(Day b)
The number of days between this and day parameter |
protected int |
daysInMonth(int inMonth,
int inYear)
|
protected int |
daysInYear(int inYear)
Returns the number of days in a given year. |
int |
getDay()
|
int |
getMonth()
|
int |
getYear()
|
protected boolean |
gregorianLeapYear(int inYear)
Returns true if the year is a Gregorian leap year. |
protected int |
julianDaysInMonth(int inMonth,
int inYear)
Returns the number of days in a given month and year assuming Julian calandar. |
protected boolean |
julianLeapYear(int inYear)
Returns true if the year is a Julian leap year. |
java.lang.String |
toString()
A string representation of the day |
int |
weekday()
Gets the weekday |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public Day()
public Day(int yyyy, int m, int d)
yyyy
- year (full year, e.g., 1996,
not starting from 1900)m
- monthd
- dayMethod Detail |
public void advance(int n)
n
- the number of days by which to change this
day (can be < 0)protected boolean gregorianLeapYear(int inYear)
Note: This method only works for years from -7 to 3199
inYear
- to checkprotected boolean julianLeapYear(int inYear)
Note: This method only works for years from -7 to 1582
inYear
- to checkprotected int julianDaysInMonth(int inMonth, int inYear)
Note: This method only works for years from -7 to 09.1582.
inMonth
- is the month to get the number of days for.inYear
- is the year we want days in inMonth for.protected int daysInMonth(int inMonth, int inYear)
protected int daysInYear(int inYear)
Note: This method only works for years from -7 to 3199.
inYear
- is the year to get the number of days for.public void advanceMonths(int n)
n
- the number of months by which to change the day (can be not be < 0)public void advanceYears(int n)
n
- the number of years by which to change the day (can be not be < 0)public int getDay()
public int getMonth()
public int getYear()
public int weekday()
public int daysBetween(Day b)
b
- any datepublic java.lang.String toString()
public java.lang.Object clone()
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs61 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |