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(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) |
java.util.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(java.util.Calendar date)
set the time; ignore year, month, date
|
void |
setTime(java.util.Date date)
set the time from a date instance
|
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)
public Time(java.lang.String value) throws java.lang.NumberFormatException
java.lang.NumberFormatException
public java.util.Calendar getAsCalendar()
public void setTime(java.util.Calendar date)
date
- public void setTime(java.util.Date date)
date
- public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
int
valueCopyright © 2005 Apache Web Services Project. All Rights Reserved.