|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.tomp2p.upnp.ISO8601Date
public class ISO8601Date
ISO8601 Date implementation taken from org.w3c package and modified to work with UPNP date types
Constructor Summary | |
---|---|
ISO8601Date()
|
Method Summary | |
---|---|
static String |
getIsoDate(Date date)
Generate a ISO 8601 date |
static String |
getIsoDateTime(Date date)
Generate a ISO 8601 date time without timezone |
static String |
getIsoDateTimeZone(Date date)
Generate a ISO 8601 date time with timezone |
static String |
getIsoTime(Date date)
Generate a ISO 8601 time |
static String |
getIsoTimeZone(Date date)
Generate a ISO 8601 time |
static Date |
parse(String isodate)
Parse the given string in ISO 8601 format and build a Date object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ISO8601Date()
Method Detail |
---|
public static Date parse(String isodate) throws NumberFormatException
isodate
- the date in ISO 8601 format
NumberFormatException
- if the date is not validpublic static String getIsoDate(Date date)
date
- a Date instance
public static String getIsoDateTime(Date date)
date
- a Date instance
public static String getIsoDateTimeZone(Date date)
date
- a Date instance
public static String getIsoTime(Date date)
date
- a Date instance
public static String getIsoTimeZone(Date date)
date
- a Date instance
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |