|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectezvcard.util.VCardDateFormatter
public class VCardDateFormatter
Helper class that formats and parses vCard dates. vCard dates adhere to the ISO8601 date format standard.
| Method Summary | |
|---|---|
static String |
format(Date date,
ISOFormat format)
Formats a date for inclusion in a vCard. |
static String |
format(Date date,
ISOFormat format,
TimeZone timeZone)
Formats a date for inclusion in a vCard. |
static Date |
parse(String dateStr)
Parses a vCard date. |
static TimeZone |
parseTimeZoneId(String timezoneId)
Gets the TimeZone object that corresponds to the given ID. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String format(Date date,
ISOFormat format)
date - the date to formatformat - the format to use
public static String format(Date date,
ISOFormat format,
TimeZone timeZone)
date - the date to formatformat - the format to usetimeZone - the time zone to format the date in. This will be ignored
if the specified ISOFormat is a "UTC" format
public static Date parse(String dateStr)
dateStr - the date string to parse
IllegalArgumentException - if the date string isn't in one of the
accepted ISO8601 formatspublic static TimeZone parseTimeZoneId(String timezoneId)
TimeZone object that corresponds to the given ID.
timezoneId - the timezone ID (e.g. "America/New_York")
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||