java.time.OffsetDateTime.plus(TemporalAmount amountToAdd) java.util.zip. InflaterOutputStream.finish() 方法示例 java.util.zip. InflaterOutputStream.flush() 方法示例 java.time.OffsetDateTime.plus(TemporalAmount amountToAdd) package com.codingdict; import java.time.OffsetDateTime; import java.time.Period; public class OffsetDateTimeDemo { public static void main(String[] args) { OffsetDateTime date = OffsetDateTime.parse("2017-02-03T10:15:30+01:00"); OffsetDateTime date1 = date.plus(Period.ofDays(10)); System.out.println(date1); } } java.util.zip. InflaterOutputStream.finish() 方法示例 java.util.zip. InflaterOutputStream.flush() 方法示例