java.time.LocalTime.toSecondOfDay() 方法示例 java.time.LocalTime.toNanoOfDay() 方法示例 java.time.LocalTime.toString() 方法示例 java.time.LocalTime.toSecondOfDay() 方法示例 package com.codingdict; import java.time.LocalTime; public class LocalTimeDemo { public static void main(String[] args) { LocalTime time = LocalTime.now(); System.out.println(time.toSecondOfDay()); } } java.time.LocalTime.toNanoOfDay() 方法示例 java.time.LocalTime.toString() 方法示例