public class Time extends Object implements Serializable
| Constructor and Description |
|---|
Time(Calendar value)
Initializes with a Calender.
|
Time(String value)
Converts a string formatted as HH:mm:ss[.SSS][+/-offset]
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Calendar |
getAsCalendar()
Returns the time as a calendar.
|
int |
hashCode()
Returns the hashcode of the underlying calendar.
|
void |
setTime(Calendar date)
Sets the time; ignores year, month, date
|
void |
setTime(Date date)
Sets the time from a date instance.
|
String |
toString()
Returns the time as it would be in GMT.
|
public Time(Calendar value)
public Time(String value) throws NumberFormatException
NumberFormatExceptionpublic Calendar getAsCalendar()
public void setTime(Calendar date)
date - public void setTime(Date date)
date - public String toString()
Copyright © 2004–2018 The Apache Software Foundation. All rights reserved.