java.time.OffsetDateTime.adjustInto() 方法示例 java.util.zip. DeflaterOutputStream.write 1() 方法示例 java.util.zip. GZIPInputStream.close() 方法示例 java.time.OffsetDateTime.adjustInto() 方法示例 package com.codingdict; import java.time.OffsetDateTime; import java.time.ZonedDateTime; public class OffsetDateTimeDemo { public static void main(String[] args) { ZonedDateTime date = ZonedDateTime.now(); System.out.println(date); OffsetDateTime date1 = OffsetDateTime.parse("2017-02-03T12:30:30+01:00"); date = (ZonedDateTime)date1.adjustInto(date); System.out.println(date); } } java.util.zip. DeflaterOutputStream.write 1() 方法示例 java.util.zip. GZIPInputStream.close() 方法示例