| |
|
| java.lang.Object org.pdfbox.util.DateConverter
DateConverter | public class DateConverter (Code) | | 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
author: Ben Litchfield version: $Revision: 1.13 $ |
Method Summary | |
public static Calendar | toCalendar(COSString date) This will convert a string to a calendar.
Parameters: date - The string representation of the calendar. | public static Calendar | toCalendar(String date) This will convert a string to a calendar.
Parameters: date - The string representation of the calendar. | public static String | toISO8601(Calendar cal) Convert the date to iso 8601 string format.
Parameters: cal - The date to convert. | public static String | toString(Calendar date) This will convert the calendar to a string.
Parameters: date - The date to convert to a string. |
toCalendar | public static Calendar toCalendar(COSString date) throws IOException(Code) | | This will convert a string to a calendar.
Parameters: date - The string representation of the calendar. The calendar that this string represents. throws: IOException - If the date string is not in the correct format. |
toCalendar | public static Calendar toCalendar(String date) throws IOException(Code) | | This will convert a string to a calendar.
Parameters: date - The string representation of the calendar. The calendar that this string represents. throws: IOException - If the date string is not in the correct format. |
toISO8601 | public static String toISO8601(Calendar cal)(Code) | | Convert the date to iso 8601 string format.
Parameters: cal - The date to convert. The date represented as an ISO 8601 string. |
toString | public static String toString(Calendar date)(Code) | | This will convert the calendar to a string.
Parameters: date - The date to convert to a string. The date as a String to be used in a PDF document. |
|
|
|