Package org.apache.xmlgraphics.util
Class DateFormatUtil
- java.lang.Object
-
- org.apache.xmlgraphics.util.DateFormatUtil
-
public final class DateFormatUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringformatISO8601(Date date, TimeZone timeZone)Formats the date according to ISO 8601 standard.static StringformatPDFDate(Date date, TimeZone timeZone)Formats the date according to PDF format.static DateparseISO8601Date(String date)Parses an ISO 8601 date and time value.
-
-
-
Method Detail
-
formatPDFDate
public static String formatPDFDate(Date date, TimeZone timeZone)
Formats the date according to PDF format. See section 3.8.2 of the PDF 1.4 specification.- Parameters:
date- The date time to formattimeZone- The time zone used to format the date- Returns:
- a formatted date according to PDF format (based on ISO 8824)
-
formatISO8601
public static String formatISO8601(Date date, TimeZone timeZone)
Formats the date according to ISO 8601 standard.- Parameters:
date- The date time to formattimeZone- The time zone used to format the date- Returns:
- a formatted date according to ISO 8601
-
-