|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthoplugins.commons.utils.HTCalendar
HTCalendar
is a class for calculating the Hattrick season and week number for a
given date. Dates before October 15, 2000 can not be calculated using this calendar and will
return both 0 for season and week.
Note:
October 15, 2000 was the start of Swedish season 11 and the first season for the first
non-Swedish leagues that were created, namely:
Method Summary | |
int |
getHTSeason()
Gets the calculated Hattrick season or 0 if the date is before the league's first season. |
int |
getHTWeek()
Gets the calculated Hattrick week. |
java.util.Date |
getTime()
Gets the date for which the Hattrick season and week is calculated. |
void |
setTime(java.util.Calendar cal)
Sets the date for which to calculate the Hattrick season and week. |
void |
setTime(java.util.Date time)
Sets the date for which to calculate the Hattrick season and week. |
void |
setTime(java.sql.Timestamp time)
Sets the date for which to calculate the Hattrick season and week. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public final int getHTSeason()
public final int getHTWeek()
public final void setTime(java.sql.Timestamp time)
time
- Date for which to calculate the Hattrick season and week.public final void setTime(java.util.Date time)
time
- Date for which to calculate the Hattrick season and week.public final void setTime(java.util.Calendar cal)
cal
- Date for which to calculate the Hattrick season and week.public final java.util.Date getTime()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |