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