MCPcopy Create free account
hub / github.com/0opslab/opslabJutil / day

Method day

src/main/java/com/opslab/helper/DateHelper.java:203–208  ·  view source on GitHub ↗

在当前时间的基础上加或减去几天 @param day @return

(int day)

Source from the content-addressed store, hash-verified

201 * @return
202 */
203 public static Date day(int day) {
204 Calendar Cal = Calendar.getInstance();
205 Cal.setTime(new Date());
206 Cal.add(Calendar.DAY_OF_YEAR, day);
207 return Cal.getTime();
208 }
209
210 /**
211 * 在指定的时间上加或减去几天

Callers 1

calculateMethod · 0.95

Calls 1

addMethod · 0.45

Tested by

no test coverage detected