Package org.eclipse.birt.core.data
Class DateFormatISO8601
java.lang.Object
org.eclipse.birt.core.data.DateFormatISO8601
DateFormatISO8601 is a utility class for formatting and parsing dates
according to date format defined by ISO8601.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringParse a date/time string.static StringFormat a date/time object.static com.ibm.icu.text.SimpleDateFormatgetDateFormat(String source, com.ibm.icu.util.TimeZone timeZone) Deprecated.use getSimpleDateFormat insteadstatic com.ibm.icu.text.SimpleDateFormatgetSimpleDateFormat(String source, com.ibm.icu.util.TimeZone timeZone) Get a date format object that can parse the given date/time stringstatic DateParse a date/time string.
-
Constructor Details
-
DateFormatISO8601
public DateFormatISO8601()
-
-
Method Details
-
parse
public static Date parse(String source, com.ibm.icu.util.TimeZone timeZone) throws BirtException, ParseException Parse a date/time string.- Parameters:
source-- Returns:
- Throws:
ParseExceptionBirtException
-
getDateFormat
@Deprecated public static com.ibm.icu.text.SimpleDateFormat getDateFormat(String source, com.ibm.icu.util.TimeZone timeZone) throws BirtException Deprecated.use getSimpleDateFormat instead- Throws:
BirtException
-
getSimpleDateFormat
public static com.ibm.icu.text.SimpleDateFormat getSimpleDateFormat(String source, com.ibm.icu.util.TimeZone timeZone) throws BirtException Get a date format object that can parse the given date/time string- Parameters:
source-timeZone-- Returns:
- Throws:
BirtExceptionParseException- Since:
- 4.8
-
format
Format a date/time object.- Parameters:
date-timeZone-- Returns:
- Throws:
BirtException
-
format
Parse a date/time string.- Parameters:
source-- Returns:
- Throws:
ParseExceptionBirtException
-