public class Time extends Object implements Serializable
Constructor and Description |
---|
Time(Calendar value)
Initialize with a Calender, year month and date are ignored
|
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()
return the time as a calendar: ignore the year, month and date fields
|
int |
hashCode()
Returns the hashcode of the underlying calendar.
|
void |
setTime(Calendar date)
set the time; ignore year, month, date
|
void |
setTime(Date date)
set the time from a date instance
|
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)
public Time(String value) throws NumberFormatException
NumberFormatException
public Calendar getAsCalendar()
public void setTime(Calendar date)
date
- public void setTime(Date date)
date
- public String toString()
Copyright © The Apache Software Foundation. All Rights Reserved.