|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.console.util.QCTime
public class QCTime
Class representing a time of day with no consideration of timezones, etc. Just an hour, minute, and second. Developed for charting but useful here.
Constructor Summary | |
---|---|
QCTime(int totSeconds)
|
|
QCTime(int anHour,
int aMinute)
|
|
QCTime(int anHour,
int aMinute,
double aSecond)
|
|
QCTime(int anHour,
int aMinute,
int aSecond)
|
Method Summary | |
---|---|
static double |
dSecondsNumber(QCTime aTime)
|
boolean |
equals(QCTime anotherTime)
|
int |
fractionalSecondAsMillis()
Return a number 0 through 999 representing the fractional second as a number of milliseconds. |
int |
getHour()
|
int |
getMinute()
|
int |
getSecond()
|
double |
getSecondsWithFraction()
|
static int |
iSecondsNumber(QCTime aTime)
|
boolean |
isGreaterThan(QCTime anotherTime)
|
boolean |
isLessThan(QCTime anotherTime)
|
static int |
minutesNumber(QCTime aTime)
|
static int |
roundedMinutesNumber(QCTime aTime)
|
java.lang.String |
toHourMinuteAMPMString()
hh:mmAM |
java.lang.String |
toHourMinuteSecondMillisecondString()
hh:mm:ss.sss |
java.lang.String |
toHourMinuteString()
hh:mm |
java.lang.String |
toString()
|
void |
zeroOutSeconds()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public QCTime(int anHour, int aMinute, int aSecond)
public QCTime(int anHour, int aMinute, double aSecond)
public QCTime(int anHour, int aMinute)
public QCTime(int totSeconds)
Method Detail |
---|
public int getHour()
public int getMinute()
public int getSecond()
public double getSecondsWithFraction()
public void zeroOutSeconds()
public boolean equals(QCTime anotherTime)
public boolean isGreaterThan(QCTime anotherTime)
public boolean isLessThan(QCTime anotherTime)
public static int iSecondsNumber(QCTime aTime)
public static double dSecondsNumber(QCTime aTime)
public static int minutesNumber(QCTime aTime)
public static int roundedMinutesNumber(QCTime aTime)
public java.lang.String toHourMinuteString()
public java.lang.String toHourMinuteAMPMString()
public java.lang.String toHourMinuteSecondMillisecondString()
public int fractionalSecondAsMillis()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |