java.time.LocalTime.ofNanoOfDay() 方法示例 java.time.LocalTime.of(int hour, int minute, int second, int nanoOfSecond) java.time.LocalTime.ofSecondOfDay() 方法示例 java.time.LocalTime.ofNanoOfDay() 方法示例 package com.codingdict; import java.time.LocalTime; import java.time.ZoneOffset; public class LocalTimeDemo { public static void main(String[] args) { LocalTime time = LocalTime.ofNanoOfDay(50000); System.out.println(time); } } java.time.LocalTime.of(int hour, int minute, int second, int nanoOfSecond) java.time.LocalTime.ofSecondOfDay() 方法示例