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