java.time.OffsetTime.minus(TemporalAmount amountToSubtract) java.time.OffsetTime.minus() 方法示例 java.time.OffsetTime.minusHours() 方法示例 java.time.OffsetTime.minus(TemporalAmount amountToSubtract) package com.codingdict; import java.time.Duration; import java.time.OffsetTime; public class OffsetTimeDemo { public static void main(String[] args) { OffsetTime time = OffsetTime.parse("12:30:30+01:00"); System.out.println(time.minus(Duration.ofHours(2))); } } java.time.OffsetTime.minus() 方法示例 java.time.OffsetTime.minusHours() 方法示例