Package java.time

Examples of java.time.ZonedDateTime.format()


    @Test
    public void unmarshalProducesCorrectLocalDateTimeObject() throws Exception {
        final ZonedDateTime unmarshaled = adapter.unmarshal(DATE_AS_STRING);

        assertEquals(unmarshaled.format(getDateTimeFormatter()), DATE_AS_STRING);
    }

    @Test
    public void marshalProducesCorrectDateTimeString() throws Exception {
        final String marshal = adapter.marshal(ZonedDateTime.parse(DATE_AS_STRING, getDateTimeFormatter()));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.