@UsesJava8 final class ZonedDateTimeToCalendarConverter extends java.lang.Object implements Converter<java.time.ZonedDateTime,java.util.Calendar>
ZonedDateTime
to Calendar
.
Note that Spring's default ConversionService setup understands the 'from'/'to' convention
that the JSR-310 java.time
package consistently uses. That convention is implemented
reflectively in ObjectToObjectConverter
, not in specific JSR-310 converters.
It covers GregorianCalendar.toZonedDateTime()
as well, and also
Date.from(java.time.Instant)
and Date.toInstant()
.
GregorianCalendar.from(java.time.ZonedDateTime)
Constructor and Description |
---|
ZonedDateTimeToCalendarConverter() |
Modifier and Type | Method and Description |
---|---|
java.util.Calendar |
convert(java.time.ZonedDateTime source)
Convert the source of type S to target type T.
|
public java.util.Calendar convert(java.time.ZonedDateTime source)
Converter