java.time.LocalTime.format() 方法示例 java.time.LocalTime.equals() 方法示例 java.time.LocalTime.from() 方法示例 java.time.LocalTime.format() 方法示例 package com.codingdict; import java.time.LocalTime; import java.time.format.DateTimeFormatter; public class LocalTimeDemo { public static void main(String[] args) { LocalTime time = LocalTime.parse("12:30:30"); System.out.println(time); DateTimeFormatter formatter = DateTimeFormatter.ISO_TIME; System.out.println(formatter.format(time)); } } java.time.LocalTime.equals() 方法示例 java.time.LocalTime.from() 方法示例