java.time.LocalTime.withNano() 方法示例 java.time.LocalTime.withMinute() 方法示例 java.time.MonthDay.adjustInto() 方法示例 java.time.LocalTime.withNano() 方法示例 package com.codingdict; import java.time.LocalTime; public class LocalTimeDemo { public static void main(String[] args) { LocalTime time = LocalTime.parse("10:15:30"); LocalTime result = time.withNano(30000); System.out.println(result); } } java.time.LocalTime.withMinute() 方法示例 java.time.MonthDay.adjustInto() 方法示例