Class LocalDateTimeToStringConverter
java.lang.Object
org.springframework.batch.core.converter.LocalDateTimeToStringConverter
- All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<LocalDateTime,
String>
public class LocalDateTimeToStringConverter
extends Object
implements org.springframework.core.convert.converter.Converter<LocalDateTime,String>
Converter
implementation from LocalDateTime
to String
.
This converter formats dates according to the
DateTimeFormatter.ISO_LOCAL_DATE_TIME
format.
- Since:
- 5.0.1
- Author:
- Mahmoud Ben Hassine
-
Field Summary
Modifier and TypeFieldDescriptionprotected DateTimeFormatter
protected DateTimeFormatter
protected DateTimeFormatter
protected DateTimeFormatter
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.core.convert.converter.Converter
andThen
-
Field Details
-
instantFormatter
-
localDateFormatter
-
localTimeFormatter
-
localDateTimeFormatter
-
-
Constructor Details
-
LocalDateTimeToStringConverter
public LocalDateTimeToStringConverter()
-
-
Method Details
-
convert
- Specified by:
convert
in interfaceorg.springframework.core.convert.converter.Converter<LocalDateTime,
String>
-