MCPcopy Create free account
hub / github.com/Lobos/react-ui / addDays

Function addDays

src/utils/datetime.js:10–14  ·  view source on GitHub ↗
(d, days)

Source from the content-addressed store, hash-verified

8}
9
10export function addDays (d, days) {
11 let newDate = clone(d);
12 newDate.setDate(d.getDate() + days);
13 return newDate;
14}
15
16export function addMonths (d, months) {
17 let newDate = clone(d);

Callers

nothing calls this directly

Calls 1

cloneFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…