org.jempbox.impl
Class DateConverter
java.lang.Objectorg.jempbox.impl.DateConverter
public class DateConverter
extends java.lang.Object
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
static Calendar | toCalendar(String date)- This will convert a string to a calendar.
|
static String | toISO8601(Calendar cal)- Convert the date to iso 8601 string format.
|
toCalendar
public static Calendar toCalendar(String date)
throws IOException This will convert a string to a calendar.
date - The string representation of the calendar.
- The calendar that this string represents.
toISO8601
public static String toISO8601(Calendar cal)
Convert the date to iso 8601 string format.
cal - The date to convert.
- The date represented as an ISO 8601 string.