Package org.apache.xmlgraphics.util
Class DateFormatUtil
java.lang.Object
org.apache.xmlgraphics.util.DateFormatUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
formatISO8601
(Date date, TimeZone timeZone) Formats the date according to ISO 8601 standard.static String
formatPDFDate
(Date date, TimeZone timeZone) Formats the date according to PDF format.static Date
parseISO8601Date
(String date) Parses an ISO 8601 date and time value.
-
Method Details
-
formatPDFDate
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
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
-
parseISO8601Date
Parses an ISO 8601 date and time value.- Parameters:
date
- the date and time value as an ISO 8601 string- Returns:
- the parsed date/time
-