java.time.OffsetTime.plusHours() 方法示例 java.time.OffsetTime.plus(TemporalAmount amountToAdd) java.time.OffsetTime.plusMinutes() 方法示例 java.time.OffsetTime.plusHours() 方法示例 package com.codingdict; import java.time.OffsetTime; public class OffsetTimeDemo { public static void main(String[] args) { OffsetTime time = OffsetTime.parse("10:15:30+01:00"); System.out.println(time.plusHours(2)); } } java.time.OffsetTime.plus(TemporalAmount amountToAdd) java.time.OffsetTime.plusMinutes() 方法示例