net.sourceforge.zmanim.util
Class Time
java.lang.Object
net.sourceforge.zmanim.util.Time
public class Time
- extends Object
A class that represents a numeric time. Times that represent a time of day
are stored as Date
s 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
.
- Version:
- 0.9.0
- Author:
- © Eliyahu Hershfeld 2004 - 2007
Constructor Summary |
Time(double millis)
|
Time(int millis)
|
Time(int hours,
int minutes,
int seconds,
int milliseconds)
|
Time
public Time(int hours,
int minutes,
int seconds,
int milliseconds)
Time
public Time(double millis)
Time
public Time(int millis)
isNegative
public boolean isNegative()
setIsNegative
public void setIsNegative(boolean isNegative)
getHours
public int getHours()
- Returns:
- Returns the hour.
setHours
public void setHours(int hours)
- Parameters:
hours
- The hours to set.
getMinutes
public int getMinutes()
- Returns:
- Returns the minutes.
setMinutes
public void setMinutes(int minutes)
- Parameters:
minutes
- The minutes to set.
getSeconds
public int getSeconds()
- Returns:
- Returns the seconds.
setSeconds
public void setSeconds(int seconds)
- Parameters:
seconds
- The seconds to set.
getMilliseconds
public int getMilliseconds()
- Returns:
- Returns the milliseconds.
setMilliseconds
public void setMilliseconds(int milliseconds)
- Parameters:
milliseconds
- The milliseconds to set.
getTime
public double getTime()
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2004 - 2009 Eliyahu Hershfeld. All Rights Reserved. Released under the GPL 2 license