public class Time
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
Time(java.util.Calendar value)
Initialize with a Calender, year month and date are ignored
|
Time(long value)
Initializes with a Calendar instance in GMT based on the number
of milliseconds since midnight.
|
Time(java.lang.String value)
Converts a string formatted as HH:mm:ss[.SSS][+/-offset]
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
long |
getTimeInMillis()
Returns the time in milliseconds since midnight in UTC.
|
int |
hashCode()
Returns the hashcode of the underlying calendar.
|
java.lang.String |
toString()
stringify method returns the time as it would be in GMT, only accurate to the
second...millis probably get lost.
|
public Time(java.util.Calendar value)
value - initial valuepublic Time(java.lang.String value)
throws java.lang.NumberFormatException
value - valuejava.lang.NumberFormatException - failed to parse valuepublic Time(long value)
value - valuepublic long getTimeInMillis()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectint valueCopyright © 2019. All Rights Reserved.