@@ -0,0 +1,848 @@
+package com.njust.test.java8;%0A%0Aimport java.time.Instant;%0Aimport java.time.LocalDateTime;%0Aimport java.time.OffsetDateTime;%0Aimport java.time.ZoneOffset;%0A%0Aimport org.junit.Test;%0A%0Apublic class InstantDemo%0A%7B%0A    /**%0A     * %3Cpre%3E%0A     * 2020-10-10T16:59:38.699%0A     * 2020-10-10T08:59:38.700Z%0A     * 2020-10-10T14:59:38.700+06:00%0A     * 2020-10-10T08:59:38.700Z%0A     * %3C/pre%3E%0A     */%0A    @Test%0A    public void test01()%0A    %7B%0A        System.out.println(LocalDateTime.now());%0A        %0A        //1.%E9%BB%98%E8%AE%A4%E6%98%AFUTC%E6%97%B6%E9%97%B4%E7%9A%84%0A        Instant instant = Instant.now();%0A        System.out.println(instant);%0A        %0A        OffsetDateTime offsetDateTime1 = instant.atOffset(ZoneOffset.of(%22+6%22));%0A        System.out.println(offsetDateTime1);%0A        %0A        OffsetDateTime offsetDateTime2 = instant.atOffset(ZoneOffset.UTC);%0A        System.out.println(offsetDateTime2);%0A    %7D%0A%7D%0A

Create InstantDemo.java