java.time.LocalDateTime.plusDays() 方法示例 java.time.LocalDateTime.plus(TemporalAmount amountToAdd) java.time.LocalDateTime.plusHours() 方法示例 java.time.LocalDateTime.plusDays() 方法示例 package com.codingdict; import java.time.LocalDateTime; public class LocalDateTimeDemo { public static void main(String[] args) { LocalDateTime date = LocalDateTime.parse("2017-02-03T10:15:30"); System.out.println(date.plusDays(2)); } } java.time.LocalDateTime.plus(TemporalAmount amountToAdd) java.time.LocalDateTime.plusHours() 方法示例