java.time.LocalDateTime.format() 方法示例 java.time.LocalDateTime.equals() 方法示例 java.time.LocalDateTime.from()方法示例 java.time.LocalDateTime.format() 方法示例 package com.codingdict; import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; public class LocalDateTimeDemo { public static void main(String[] args) { LocalDateTime date = LocalDateTime.parse("2017-02-03T12:30:30"); System.out.println(date); DateTimeFormatter formatter = DateTimeFormatter.ISO_TIME; System.out.println(formatter.format(date)); } } java.time.LocalDateTime.equals() 方法示例 java.time.LocalDateTime.from()方法示例