java.time.LocalTime.until() 方法示例 java.time.LocalTime.truncatedTo() 方法示例 java.time.LocalTime.with(TemporalField field, long newValue) java.time.LocalTime.until() 方法示例 package com.codingdict; import java.time.LocalTime; public class LocalTimeDemo { public static void main(String[] args) { LocalTime date = LocalTime.parse("10:15:30"); LocalTime result = date.with(LocalTime.NOON); System.out.println(result); } } java.time.LocalTime.truncatedTo() 方法示例 java.time.LocalTime.with(TemporalField field, long newValue)