public class Time extends Object implements Serializable
| Constructor and Description |
|---|
Time(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(String value)
Converts a string formatted as HH:mm:ss[.SSS][+/-offset]
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
long |
getTimeInMillis()
Returns the time in milliseconds since midnight in UTC.
|
int |
hashCode()
Returns the hashcode of the underlying calendar.
|
String |
toString()
stringify method returns the time as it would be in GMT, only accurate to the
second...millis probably get lost.
|
public Time(Calendar value)
value - initial valuepublic Time(String value) throws NumberFormatException
value - valueNumberFormatException - failed to parse valuepublic Time(long value)
value - valuepublic long getTimeInMillis()
public String toString()
Copyright © 2020. All rights reserved.