Class Time
java.lang.Object
org.apache.axis2.databinding.types.Time
- All Implemented Interfaces:
Serializable
Class that represents the xsd:time XML Schema type
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Time
Initializes with a Calender. Year, month and date are ignored. -
Time
Converts a string formatted as HH:mm:ss[.SSS][+/-offset]- Throws:
NumberFormatException
-
-
Method Details
-
getAsCalendar
Returns the time as a calendar. Ignores the year, month and date fields.- Returns:
- Returns calendar value; may be null.
-
setTime
Sets the time; ignores year, month, date- Parameters:
date-
-
setTime
Sets the time from a date instance.- Parameters:
date-
-
toString
Returns the time as it would be in GMT. This is accurate to the seconds. Milliseconds probably gets lost. -
equals
-
hashCode
public int hashCode()Returns the hashcode of the underlying calendar.
-