@@ -0,0 +1,1026 @@
+package com.njust.test.java8;%0A%0Aimport java.time.OffsetDateTime;%0Aimport java.time.format.DateTimeFormatter;%0A%0Aimport org.junit.Test;%0A%0Apublic class DateTimeFormatterDemo%0A%7B%0A    /**%0A     * %3Cpre%3E%0A     * 2020-10-10T17:40:50.907+08:00%0A     * 2020-10-10 17:40:50%0A     * 2020-10-10 17:40:50.907%0A     * 2020-10-10 17:40:50.907 +0800%0A     * 2020-10-10TT17:40:50.907 +0800%0A     * %3C/pre%3E%0A     */%0A    @Test%0A    public void test01()%0A    %7B%0A        OffsetDateTime offsetDateTime = OffsetDateTime.now();%0A        System.out.println(offsetDateTime.format(DateTimeFormatter.ISO_DATE_TIME));%0A        %0A        System.out.println(offsetDateTime.format(DateTimeFormatter.ofPattern(%22yyyy-MM-dd HH:mm:ss%22)));%0A        System.out.println(offsetDateTime.format(DateTimeFormatter.ofPattern(%22yyyy-MM-dd HH:mm:ss.SSS%22)));%0A        System.out.println(offsetDateTime.format(DateTimeFormatter.ofPattern(%22yyyy-MM-dd HH:mm:ss.SSS Z%22)));%0A        System.out.println(offsetDateTime.format(DateTimeFormatter.ofPattern(%22yyyy-MM-dd'TT'HH:mm:ss.SSS Z%22)));%0A        %0A    %7D%0A%7D%0A

Create DateTimeFormatterDemo.java