Package org.apache.axis.types
Class Time
java.lang.Object
org.apache.axis.types.Time
- All Implemented Interfaces:
Serializable
Class that represents the xsd:time XML Schema type
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
return the time as a calendar: ignore the year, month and date fieldsint
hashCode()
Returns the hashcode of the underlying calendar.void
set the time; ignore year, month, datevoid
set the time from a date instancetoString()
stringify method returns the time as it would be in GMT, only accurate to the second...millis probably get lost.
-
Constructor Details
-
Time
Initialize 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
return the time as a calendar: ignore the year, month and date fields- Returns:
- calendar value; may be null
-
setTime
set the time; ignore year, month, date- Parameters:
date
-
-
setTime
set the time from a date instance- Parameters:
date
-
-
toString
stringify method returns the time as it would be in GMT, only accurate to the second...millis probably get lost. -
equals
-
hashCode
public int hashCode()Returns the hashcode of the underlying calendar.
-