Java8 LocalDateTime(yyyy-MM-dd HH:mi:ss.SSS), LocalDate(yyyy-MM-dd), LocalTime(HH:mi:ss.SSS)
参考import java.time.*import java.time.temporal.*LocalDateTime datetime = LocalDateTime.now()println "当前年月日时分秒毫秒:"+datetimeprintln "年增加:"+datetime.plusYears(2L)println "月增加:"+datetime.plusMonths(2L)println "日增加:"