|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.hkust.afchecker.data.Time
public class Time
Author: Andrew
File history: Created on July 22, 2011. Last update on Sept. 16, 2012
Description: Time in format hh:mm.
Constructor Summary | |
---|---|
Time(int h,
int m)
constructor |
Method Summary | |
---|---|
int |
convertToMinuteOffset()
convert the time to minutes (with respect to 00:00, the precision level is 1 minute) |
static boolean |
earlierThan(Time t1,
Time t2)
check the temporal relationship between two time points |
static boolean |
laterThan(Time t1,
Time t2)
check the temporal relationship between two time points |
static boolean |
timeEqual(Time t1,
Time t2)
check whether two time points are equal |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Time(int h, int m)
h
- hourm
- minuteMethod Detail |
---|
public static boolean timeEqual(Time t1, Time t2)
t1
- t2
-
public static boolean earlierThan(Time t1, Time t2)
t1
- t2
-
public static boolean laterThan(Time t1, Time t2)
t1
- t2
-
public int convertToMinuteOffset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |