Class DateConverter
- java.lang.Object
-
- org.verapdf.metadata.fixer.gf.utils.DateConverter
-
public class DateConverter extends Object
Utility class for converting dates to different formats- Author:
- Maksim Bezrukov
-
-
Constructor Summary
Constructors Constructor Description DateConverter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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
-
-
-
Method Detail
-
toXMPDateFormat
public static String toXMPDateFormat(Calendar calendar)
ConvertCalendarobject to string representation in xmp date form- Parameters:
calendar- passed date- Returns:
- string representation of passed date
-
toXMPDateFormat
public static String toXMPDateFormat(Date time)
ConvertDateobject to string representation in xmp date form- Parameters:
time- passed date- Returns:
- string representation of passed date
-
toXMPDateFormat
public static String toXMPDateFormat(String date)
Convert string date representation to string representation in xmp date form.- Parameters:
date- passed date- Returns:
- XMP representation of passed date
-
toCalendar
public static Calendar toCalendar(String date)
Convert string representation of date toCalendarobject- Parameters:
date- passed string date- Returns:
Calendardate
-
toPDFDateFormat
public static String toPDFDateFormat(String date)
Convert string representation of date to string representation of date in PDF format- Parameters:
date- passed date- Returns:
- PDF string representation of passed date
-
-