public class Time extends Object
Dates in
this API. The time class is used to represent numeric time such as the time in hours, minutes, seconds and
milliseconds of a temporal hour.| Constructor and Description |
|---|
Time(double millis) |
Time(int millis) |
Time(int hours,
int minutes,
int seconds,
int milliseconds) |
| Modifier and Type | Method and Description |
|---|---|
int |
getHours() |
int |
getMilliseconds() |
int |
getMinutes() |
int |
getSeconds() |
double |
getTime() |
boolean |
isNegative() |
void |
setHours(int hours) |
void |
setIsNegative(boolean isNegative) |
void |
setMilliseconds(int milliseconds) |
void |
setMinutes(int minutes) |
void |
setSeconds(int seconds) |
String |
toString() |
public Time(int hours, int minutes, int seconds, int milliseconds)
public Time(double millis)
public Time(int millis)
public boolean isNegative()
public void setIsNegative(boolean isNegative)
public int getHours()
public void setHours(int hours)
hours - The hours to set.public int getMinutes()
public void setMinutes(int minutes)
minutes - The minutes to set.public int getSeconds()
public void setSeconds(int seconds)
seconds - The seconds to set.public int getMilliseconds()
public void setMilliseconds(int milliseconds)
milliseconds - The milliseconds to set.public double getTime()
Copyright © 2004 - 2011 Eliyahu Hershfeld. All Rights Reserved. Released under the LGPL 2.1 license