Package com.sforce.ws.types
Class Time
java.lang.Object
com.sforce.ws.types.Time
- All Implemented Interfaces:
Serializable
Class that represents the xsd:time XML Schema type
Taken from Apache Axis 1.4. Modified slightly by btsai.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Time
Initialize with a Calender, year month and date are ignored- Parameters:
value- initial value
-
Time
Converts a string formatted as HH:mm:ss[.SSS][+/-offset]- Parameters:
value- value- Throws:
NumberFormatException- failed to parse value
-
Time
public Time(long value) Initializes with a Calendar instance in GMT based on the number of milliseconds since midnight. Year, month, and date are ignored.- Parameters:
value- value
-
-
Method Details
-
getTimeInMillis
public long getTimeInMillis()Returns the time in milliseconds since midnight in UTC.- Returns:
- time in milli sec
-
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.
-