java.time.LocalTime.until() 方法示例


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);  
   }
}