public class MITime extends Object implements Comparable, Serializable
| Constructor and Description |
|---|
MITime(Date time)
Constructs a new instance using from
java.util.date using joda api. |
MITime(int hour,
int minute,
double seconds)
Constructs a new instance.
|
MITime(long milliSeconds)
Constructs a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(MITime time) |
boolean |
equals(Object o) |
int |
getHour()
Returns the hour
|
int |
getMinute()
Returns the minute of the hour.
|
double |
getSeconds()
Returns the seconds.
|
long |
getTimeInMilliSeconds()
Returns the number of milliseconds since the start of the day.
|
int |
hashCode() |
String |
toString()
Returns an
MITime as a String in hh:mm:ss format. |
public MITime(int hour,
int minute,
double seconds)
hour - the hourminute - the minuteseconds - the secondspublic MITime(long milliSeconds)
Calendar.getTimeInMillis()
or System.currentTimeMillis().milliSeconds - time in milliseconds to use to initialize this instance.public MITime(Date time)
java.util.date using joda api.time - public int getHour()
public int getMinute()
public long getTimeInMilliSeconds()
public double getSeconds()
public int compareTo(MITime time)
compareTo in interface Comparable© 2007, 2022 Precisely. All rights reserved.