Class DateConverter
java.lang.Object
org.apache.xmpbox.DateConverter
This class is used to convert dates to strings and back using the PDF date standards. Date are described in
PDFReference1.4 section 3.8.2
This is (and will not be) a Java date parsing library and will likely still have limited support for various strings as it?s main use case it to parse from PDF date strings.
- Author:
- Ben Litchfield, Christopher Oezbek
-
Method Summary
Modifier and TypeMethodDescriptionstatic CalendartoCalendar(String date) This will convert a string to a calendar.static StringConvert the date to iso 8601 string format.static StringConvert the date to iso 8601 string format.
-
Method Details
-
toCalendar
This will convert a string to a calendar.- Parameters:
date- The string representation of the calendar.- Returns:
- The calendar that this string represents.
- Throws:
IOException- If the date string is not in the correct format.
-
toISO8601
-
toISO8601
-