Class DateConverter
java.lang.Object
org.verapdf.metadata.fixer.gf.utils.DateConverter
Utility class for converting dates to different formats
- Author:
- Maksim Bezrukov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CalendartoCalendar(String date) Convert string representation of date toCalendarobjectstatic StringtoPDFDateFormat(String date) Convert string representation of date to string representation of date in PDF formatstatic StringtoPDFDateFormat(Calendar date) ConvertCalendardate to string representation of date in PDF formatstatic StringtoXMPDateFormat(String date) Convert string date representation to string representation in xmp date form.static StringtoXMPDateFormat(Calendar calendar) ConvertCalendarobject to string representation in xmp date formstatic StringtoXMPDateFormat(Date time) ConvertDateobject to string representation in xmp date form
-
Constructor Details
-
DateConverter
public DateConverter()
-
-
Method Details
-
toXMPDateFormat
ConvertCalendarobject to string representation in xmp date form- Parameters:
calendar- passed date- Returns:
- string representation of passed date
-
toXMPDateFormat
ConvertDateobject to string representation in xmp date form- Parameters:
time- passed date- Returns:
- string representation of passed date
-
toXMPDateFormat
Convert string date representation to string representation in xmp date form.- Parameters:
date- passed date- Returns:
- XMP representation of passed date
-
toCalendar
Convert string representation of date toCalendarobject- Parameters:
date- passed string date- Returns:
Calendardate
-
toPDFDateFormat
Convert string representation of date to string representation of date in PDF format- Parameters:
date- passed date- Returns:
- PDF string representation of passed date
-
toPDFDateFormat
ConvertCalendardate to string representation of date in PDF format- Parameters:
date- passed date- Returns:
- PDF string representation of date
-