Interface HttpDateFormat.HttpDateFormatter
- Enclosing class:
- HttpDateFormat
public static interface HttpDateFormat.HttpDateFormatter
A minimum formatter for converting java Date and LocalDateTime to String and vice-versa.
Works as a facade for implementation backed by SimpleDateFormat and DateTimeFormatter.
-
Method Summary
Modifier and TypeMethodDescriptionformat(LocalDateTime dateTime) Formats aLocalDateTimeinto a date-time string.Formats aDateinto a date-time string.toDateTime(String date)
-
Method Details
-
toDate
- Parameters:
date-- Returns:
-
toDateTime
- Parameters:
date-- Returns:
-
format
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
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.
-