|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.commons.utils.ISO8601ASF
@Deprecated public final class ISO8601ASF
The ISO8601 utility class provides helper methods to deal with
date/time formatting using a specific ISO8601-compliant format (see ISO 8601).
±YYYY-MM-DDThh:mm:ss.SSSTZDwhere:
±YYYY = four-digit year with optional sign where values <= 0 are
denoting years BCE and values > 0 are denoting years CE,
e.g. -0001 denotes the year 2 BCE, 0000 denotes the year 1 BCE,
0001 denotes the year 1 CE, and so on...
MM = two-digit month (01=January, etc.)
DD = two-digit day of month (01 through 31)
hh = two digits of hour (00 through 23) (am/pm NOT allowed)
mm = two digits of minute (00 through 59)
ss = two digits of second (00 through 59)
SSS = three digits of milliseconds (000 through 999)
TZD = time zone designator, Z for Zulu (i.e. UTC) or an offset from UTC
in the form of +hh:mm or -hh:mm
| Constructor Summary | |
|---|---|
ISO8601ASF()
Deprecated. |
|
| Method Summary | |
|---|---|
static java.lang.String |
format(java.util.Calendar cal)
Deprecated. Formats a Calendar value into an ISO8601-compliant date/time
string. |
static java.util.Calendar |
parse(java.lang.String text)
Deprecated. Parses an ISO8601-compliant date/time string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ISO8601ASF()
| Method Detail |
|---|
public static java.util.Calendar parse(java.lang.String text)
text - the date/time string to be parsed
Calendar, or null if the input could
not be parsed
java.lang.IllegalArgumentException - if a null argument is passedpublic static java.lang.String format(java.util.Calendar cal)
Calendar value into an ISO8601-compliant date/time
string.
cal - the time value to be formatted into a date/time string.
java.lang.IllegalArgumentException - if a null argument is passed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||