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