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