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