|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.pangaea.metadataportal.utils.ISODateFormatter
public final class ISODateFormatter
Simple static class to create and parse ISO-8601 date stamps (used by OAI harvester): The used date formats are:
yyyy-MM-dd'T'HH:mm:ss'Z'yyyy-MM-dd
| Method Summary | |
|---|---|
static String |
formatLong(Date date)
Formats a long date. |
static String |
formatLong(long date)
Formats a long date. |
static String |
formatShort(Date date)
Formats a short date. |
static String |
formatShort(long date)
Formats a short date. |
static Date |
parseDate(String date)
Parses the given string into a Date. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Date parseDate(String date)
throws ParseException
Date. It accepts short and long dates (with time)
ParseExceptionpublic static String formatLong(Date date)
public static String formatLong(long date)
public static String formatShort(Date date)
public static String formatShort(long date)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||