|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.util.ISO8601DateFormat
public class ISO8601DateFormat
Formatting support for ISO 8601 dates
sYYYY-MM-DDThh:mm:ss.sssTZDwhere:
Constructor Summary | |
---|---|
ISO8601DateFormat()
|
Method Summary | |
---|---|
static java.lang.String |
format(java.util.Date isoDate)
Format date into ISO format |
static java.util.Date |
parse(java.lang.String isoDate)
Parse date from ISO formatted string. |
static java.util.Date |
parse(java.lang.String isoDate,
java.util.TimeZone timezone)
Parse date from ISO formatted string, with an explicit timezone specified |
static java.util.Date |
parseInternal(java.lang.String isoDate,
java.util.TimeZone timezone)
Parse date from ISO formatted string, either in the specified TimeZone, or with TimeZone information taken from the date |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ISO8601DateFormat()
Method Detail |
---|
public static java.lang.String format(java.util.Date isoDate)
isoDate
- the date to format
public static java.util.Date parse(java.lang.String isoDate)
isoDate
- ISO string to parse
AlfrescoRuntimeException
- if the parse failedpublic static java.util.Date parse(java.lang.String isoDate, java.util.TimeZone timezone)
isoDate
- ISO string to parsetimezone
- The TimeZone the date is in
AlfrescoRuntimeException
- if the parse failedpublic static java.util.Date parseInternal(java.lang.String isoDate, java.util.TimeZone timezone)
isoDate
- ISO string to parse
AlfrescoRuntimeException
- if the parse failed
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |