final class DateTimeConverters
extends java.lang.Object
Note: DateTimeFormatterRegistrar
installs these converters but
does not rely on them for its formatters. They are just being registered
for custom conversion scenarios between different JSR-310 value types
and also between Calendar
and JSR-310 value types.
Constructor and Description |
---|
DateTimeConverters() |
Modifier and Type | Method and Description |
---|---|
private static java.time.ZonedDateTime |
calendarToZonedDateTime(java.util.Calendar source) |
static void |
registerConverters(ConverterRegistry registry)
Install the converters into the converter registry.
|
public static void registerConverters(ConverterRegistry registry)
registry
- the converter registryprivate static java.time.ZonedDateTime calendarToZonedDateTime(java.util.Calendar source)