|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectformatter.Timestamp
public class Timestamp
A time stamp is an hour, minute and second group representing the time.
| Constructor Summary | |
|---|---|
Timestamp(int h,
int m,
int s)
Makes a new Timestamp representing the time:h : m : s |
|
| Method Summary | |
|---|---|
java.lang.String |
getAMPM()
Returns "AM" or "PM" depending on whether it's am or pm. |
int |
getHour12()
Returns the hour in the 12-hour time system. |
int |
getHour24()
Returns the hour in the 24-hour time system. |
int |
getMinute()
Returns the minute of time. |
int |
getSecond()
Returns the second in time. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Timestamp(int h,
int m,
int s)
Timestamp representing the time:h : m : s
h - Hour of the time.m - Minute of the time.s - Second of the time.| Method Detail |
|---|
public int getHour12()
public int getHour24()
public int getMinute()
public int getSecond()
public java.lang.String getAMPM()
"AM" or "PM" depending on whether it's am or pm.
"AM" or "PM"
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||