Interface HttpDateFormat.HttpDateFormatter
-
- Enclosing class:
- HttpDateFormat
public static interface HttpDateFormat.HttpDateFormatterA minimum formatter for converting java
DateandLocalDateTimetoStringand vice-versa.Works as a facade for implementation backed by
SimpleDateFormatandDateTimeFormatter.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stringformat(LocalDateTime dateTime)Formats aLocalDateTimeinto a date-time string.Stringformat(Date date)Formats aDateinto a date-time string.DatetoDate(String date)LocalDateTimetoDateTime(String date)
-
-
-
Method Detail
-
toDateTime
LocalDateTime toDateTime(String date)
- Parameters:
date-- Returns:
-
format
String format(Date date)
Formats aDateinto a date-time string.- Parameters:
date- the time value to be formatted into a date-time string.- Returns:
- the formatted date-time string.
-
format
String format(LocalDateTime dateTime)
Formats aLocalDateTimeinto a date-time string.- Parameters:
dateTime- the time value to be formatted into a date-time string.- Returns:
- the formatted date-time string.
-
-