|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hippoecm.hst.util.ForkedISO8601
@Deprecated public final class ForkedISO8601
Constructor Summary | |
---|---|
ForkedISO8601()
Deprecated. |
Method Summary | |
---|---|
static String |
format(Calendar cal)
Deprecated. Formats a Calendar value into an ISO8601-compliant
date/time string. |
static int |
getYear(Calendar cal)
Deprecated. Returns the astronomical year of the given calendar. |
static Calendar |
parse(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 ForkedISO8601()
Method Detail |
---|
public static Calendar parse(String text)
text
- the date/time string to be parsed
Calendar
, or null
if the input could
not be parsed
IllegalArgumentException
- if a null
argument is passedpublic static String format(Calendar cal) throws IllegalArgumentException
Calendar
value into an ISO8601-compliant
date/time string.
cal
- the time value to be formatted into a date/time string.
IllegalArgumentException
- if a null
argument is passed
or the calendar cannot be represented as defined by ISO 8601 (i.e. year
with more than four digits).public static int getYear(Calendar cal) throws IllegalArgumentException
cal
- a calendar instance.
IllegalArgumentException
- if calendar cannot be represented as
defined by ISO 8601 (i.e. year with more
than four digits).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |