java.time.LocalTime.of(int year, int month, int dayOfMonth, int hour, int minute, int second) java.time.LocalTime.of() 方法示例 java.time.LocalTime.of(int hour, int minute, int second, int nanoOfSecond) java.time.LocalTime.of(int year, int month, int dayOfMonth, int hour, int minute, int second) package com.codingdict; import java.time.LocalTime; public class LocalTimeDemo { public static void main(String[] args) { LocalTime date = LocalTime.of(6,30,40); System.out.println(date); } } java.time.LocalTime.of() 方法示例 java.time.LocalTime.of(int hour, int minute, int second, int nanoOfSecond)