java.time.LocalTime.plus() 方法示例 java.time.LocalTime.parse(CharSequence text, DateTimeFormatter formatter) java.time.LocalTime.plus(TemporalAmount amountToAdd) java.time.LocalTime.plus() 方法示例 package com.codingdict; import java.time.LocalTime; import java.time.temporal.ChronoUnit; public class LocalTimeDemo { public static void main(String[] args) { LocalTime time = LocalTime.parse("10:15:30"); LocalTime time1 = time.plus(10, ChronoUnit.HOURS); System.out.println(time1); } } java.time.LocalTime.parse(CharSequence text, DateTimeFormatter formatter) java.time.LocalTime.plus(TemporalAmount amountToAdd)