java.time.LocalTime.now(ZoneId zone) java.time.LocalTime.now(Clock clock) java.time.LocalTime.of() 方法示例 java.time.LocalTime.now(ZoneId zone) package com.codingdict; import java.time.LocalTime; import java.time.ZoneId; public class LocalTimeDemo { public static void main(String[] args) { LocalTime time = LocalTime.now(ZoneId.systemDefault()); System.out.println(time); } } java.time.LocalTime.now(Clock clock) java.time.LocalTime.of() 方法示例