KosherJava Zmanim Homepage
Includes a dynamic Zmanim calendar generator

net.sourceforge.zmanim.util
Class Time

java.lang.Object
  extended bynet.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 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.

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)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Time

public Time(int hours,
            int minutes,
            int seconds,
            int milliseconds)

Time

public Time(double millis)

Time

public Time(int millis)
Method Detail

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()

KosherJava Zmanim Homepage
Includes a dynamic Zmanim calendar generator

Copyright © 2004 - 2007 Eliyahu Hershfeld. All Rights Reserved.