|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.util.ISO8601
public final class ISO8601
A utility class for encoding and parsing ISO8601 date/time format strings. The following sites have more information:
W3C NOTE - Date and Time Formated
Appendix 2 of the WebDAV specification.
| Method Summary | |
|---|---|
static long |
parse(java.lang.String spec)
Parses the provided IS08601 formated string abd returns the corresponding Java time. |
static java.lang.String |
toGMTString(long time)
Returns the ISO8601 date/time format for the specified time. |
static java.lang.String |
toLocalString(long time)
Returns the ISO8601 date/time string for the specified Java time with respect to the local timezone. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.String toGMTString(long time)
"1999-06-17T16:43:07.982Z"
time - the Java time value to represent as a String
public static java.lang.String toLocalString(long time)
time - Java time value to represent as a string
public static long parse(java.lang.String spec)
1999-06-17T16:43:07.982Z1999-06-17T16:43:07Z1999-06-17T16:43:07.982+02:00
spec - the IS08601 date/time specification string
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||