|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object speedscheduler.TimeUtils
public class TimeUtils
Some handy constances and helper functions for working with times and such.
Field Summary | |
---|---|
static int |
WEEK_LEN
Number of days in a week |
Constructor Summary | |
---|---|
TimeUtils()
|
Method Summary | |
---|---|
private static java.util.Calendar |
getCurrentCalendar()
|
static int |
getCurrentDayIndex()
Returns the day of the week indexed at 0. |
static Time |
getCurrentTime()
Returns the current time according to the computer as a Time object. |
static java.lang.String |
getDayName(int dayOfWeekIndex)
Utility to translate the dayOfWeek index to a human-readable string. |
static java.lang.String |
getShortDayName(int dayOfWeekIndex)
Gets the name of the day by week index. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int WEEK_LEN
Constructor Detail |
---|
public TimeUtils()
Method Detail |
---|
public static java.lang.String getShortDayName(int dayOfWeekIndex)
dayOfWeekIndex
- the week index, 0: Sunday, 6: Saturday.
public static java.lang.String getDayName(int dayOfWeekIndex)
public static Time getCurrentTime()
public static int getCurrentDayIndex()
private static java.util.Calendar getCurrentCalendar()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |