public final class ISO8601 extends Object
Constructor and Description |
---|
ISO8601() |
Modifier and Type | Method and Description |
---|---|
static Calendar |
parseISO8601(String str)
Parse str into a date, assuming ISO8601 representation
|
static Calendar |
parseISO8601(String str, TimeZone tz)
Parse str into a date, assuming ISO8601 representation
|
public static Calendar parseISO8601(String str) throws ParseException
str
- the date in ISO8601 string formatParseException
- if the string format is not validpublic static Calendar parseISO8601(String str, TimeZone tz) throws ParseException
str
- the date in ISO8601 string formattz
- the timezone to use if not specified in stringParseException
- if the string format is not valid