|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.charlesames.utility.date.ISO8601
public abstract class ISO8601
Methods supporting the ISO-8601 date format.
The code source is http://www.java2s.com/Code/Java/Data-Type/ISO8601dateparsingutility.htm
| Constructor Summary | |
|---|---|
ISO8601()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
formatAsDateTime(java.util.Date date)
Converts a date to ISO-8601 format. |
static java.util.Date |
parseDateTime(java.lang.String input)
Parses a date from ISO-8601 format. |
static java.util.Date |
parseDuration(java.lang.String text)
Converts an ISO8601 duration to a date. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ISO8601()
| Method Detail |
|---|
public static java.util.Date parseDuration(java.lang.String text)
throws java.text.ParseException
text - Text representing a date in ISO-8601 format.
java.text.ParseException
public static java.util.Date parseDateTime(java.lang.String input)
throws java.text.ParseException
input - The formatted text.
java.text.ParseExceptionpublic static java.lang.String formatAsDateTime(java.util.Date date)
date - The date.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||