All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.migesok.jaxb.adapter.javatime.LocalDateTimeXmlAdapter Maven / Gradle / Ivy

There is a newer version: 1.1.3
Show newest version
package com.migesok.jaxb.adapter.javatime;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * {@link javax.xml.bind.annotation.adapters.XmlAdapter XmlAdapter} mapping JSR-310
 * {@link java.time.LocalDateTime LocalDateTime} to ISO-8601 string
 * 

* String format details: {@link java.time.format.DateTimeFormatter#ISO_LOCAL_DATE_TIME ISO_LOCAL_DATE_TIME} * * @author Mikhail Sokolov */ public class LocalDateTimeXmlAdapter extends TemporalAccessorXmlAdapter { public LocalDateTimeXmlAdapter() { super(DateTimeFormatter.ISO_LOCAL_DATE_TIME, LocalDateTime::from); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy