package com.oracle.java.corelibs;

import java.time.Instant;

/**
 *
 * @author ababroy
 */
public class InstantParseDemo {

    public static void main(String[] args) {

        String inputDot = "2016-01-02T12:34:56.7Z";  // Succeeds.
        Instant instantDot = Instant.parse(inputDot);

        String inputComma = "2016-01-02T12:34:56,7Z";  // Fails. Throws a DateTimeParseException.
        Instant instantComma = Instant.parse(inputComma);
    }

}
