java.time.LocalDateTime.toLocalTime() 方法示例


java.time.LocalDateTime.toLocalTime() 方法示例

package com.codingdict;

import java.time.LocalDateTime;

public class LocalDateTimeDemo {
   public static void main(String[] args) {

      LocalDateTime date = LocalDateTime.now();
      System.out.println(date.toLocalTime());  
   }
}