|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sforce.ws.types.Time
public class Time
Class that represents the xsd:time XML Schema type Taken from Apache Axis 1.4. Modified slightly by btsai.
| Constructor Summary | |
|---|---|
Time(Calendar value)
Initialize with a Calender, year month and date are ignored |
|
Time(long value)
Initializes with a Calendar instance in GMT based on the number of milliseconds since midnight. |
|
Time(String value)
Converts a string formatted as HH:mm:ss[.SSS][+/-offset] |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
long |
getTimeInMillis()
Returns the time in milliseconds since midnight in UTC. |
int |
hashCode()
Returns the hashcode of the underlying calendar. |
String |
toString()
stringify method returns the time as it would be in GMT, only accurate to the second...millis probably get lost. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Time(Calendar value)
value - initial value
public Time(String value)
throws NumberFormatException
value - value
NumberFormatException - failed to parse valuepublic Time(long value)
value - value| Method Detail |
|---|
public long getTimeInMillis()
public String toString()
toString in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectint value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||