public class Clock
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static int |
getBigBangsDate() |
static int |
getCurrentDate() |
static Clock |
getInstance() |
static boolean |
isEarlier(int dateA,
int dateB) |
static boolean |
isLater(int dateA,
int dateB) |
static boolean |
isSameDay(int dateA,
int dateB) |
static boolean |
isSameMonth(int dateA,
int dateB) |
static void |
tick()
Make the time progress (don't care about overflows ...)
|
public static Clock getInstance()
public static void tick()
public static int getCurrentDate()
public static int getBigBangsDate()
public static boolean isSameDay(int dateA, int dateB)
true
iff the two given dates refer to the same daypublic static boolean isEarlier(int dateA, int dateB)
true
iff dateA
is an earlier date
than dateB
public static boolean isLater(int dateA, int dateB)
true
iff dateA
is a later date
than dateB
public static boolean isSameMonth(int dateA, int dateB)
true
iff the two given dates refer to the same day