|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectutils.TimeUtils
public final class TimeUtils
Provides some methods to transfer counter to day, hours, minutes, date etc.
| Constructor Summary | |
|---|---|
TimeUtils()
|
|
| Method Summary | |
|---|---|
static String |
counterToDate(int counter)
|
static int |
counterToDays(int counter)
|
static double |
counterToHours(int counter)
day hour - something between 0-24 only int |
static String |
counterToTime(int counter)
|
static long |
getTimeInMilis()
Returns system time in miliseconds. |
static int |
hourInTicksOfLogic()
|
static boolean |
isDay(int counter,
int i)
returns true if the counter represents exactly to given day. |
static boolean |
isHour(int counter)
|
static boolean |
isHour(int counter,
int i)
returns true if the counter represents exactly to given hour of a day. |
static int |
minutesToTicksOfLogic(double minutes)
|
static String |
now(String dateFormat)
Gets current system time according to the input dateFormat. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TimeUtils()
| Method Detail |
|---|
public static int counterToDays(int counter)
public static double counterToHours(int counter)
counter -
public static boolean isHour(int counter)
public static boolean isHour(int counter,
int i)
counter - i -
public static boolean isDay(int counter,
int i)
counter - i -
public static int minutesToTicksOfLogic(double minutes)
public static String counterToDate(int counter)
public static int hourInTicksOfLogic()
public static String counterToTime(int counter)
public static String now(String dateFormat)
dateFormat - input dateFormat
public static long getTimeInMilis()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||