Class LocalDateTimeToStringConverter

java.lang.Object
org.springframework.batch.core.converter.LocalDateTimeToStringConverter
All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<LocalDateTime, String>

@Deprecated(since="6.1.0", forRemoval=true) public class LocalDateTimeToStringConverter extends Object implements org.springframework.core.convert.converter.Converter<LocalDateTime, String>
Deprecated, for removal: This API element is subject to removal in a future version.
since 6.1.0 in favor of ConversionServiceFactory.createConversionService(). Scheduled for removal in 7.0.0.
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 Details

    • instantFormatter

      protected DateTimeFormatter instantFormatter
      Deprecated, for removal: This API element is subject to removal in a future version.
    • localDateFormatter

      protected DateTimeFormatter localDateFormatter
      Deprecated, for removal: This API element is subject to removal in a future version.
    • localTimeFormatter

      protected DateTimeFormatter localTimeFormatter
      Deprecated, for removal: This API element is subject to removal in a future version.
    • localDateTimeFormatter

      protected DateTimeFormatter localDateTimeFormatter
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Details

    • LocalDateTimeToStringConverter

      public LocalDateTimeToStringConverter()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • convert

      public String convert(LocalDateTime source)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      convert in interface org.springframework.core.convert.converter.Converter<LocalDateTime, String>