java.time.LocalDateTime.of() 方法示例 java.time.LocalDateTime.now(ZoneId zone) java.time.LocalDateTime.of(int year, int month, int dayOfMonth, int hour, int minute, int second) java.time.LocalDateTime.of() 方法示例 package com.codingdict; import java.time.LocalDateTime; public class LocalDateTimeDemo { public static void main(String[] args) { LocalDateTime date = LocalDateTime.of(2017,2,3,6,30); System.out.println(date); } } java.time.LocalDateTime.now(ZoneId zone) java.time.LocalDateTime.of(int year, int month, int dayOfMonth, int hour, int minute, int second)