java.time.LocalTime.minusHours() 方法示例 java.time.LocalTime.minus(TemporalAmount amountToSubtract) java.time.LocalTime.minusMinutes() 方法示例 java.time.LocalTime.minusHours() 方法示例 package com.codingdict; import java.time.LocalTime; public class LocalTimeDemo { public static void main(String[] args) { LocalTime time = LocalTime.parse("12:30:30"); System.out.println(time.minusHours(2)); } } java.time.LocalTime.minus(TemporalAmount amountToSubtract) java.time.LocalTime.minusMinutes() 方法示例