MCPcopy Index your code
hub / github.com/scality/cloudserver / dateFromNow

Function dateFromNow

tests/functional/aws-node-sdk/test/object/objectHead.js:34–38  ·  view source on GitHub ↗
(diff)

Source from the content-addressed store, hash-verified

32}
33
34function dateFromNow(diff) {
35 const d = new Date();
36 d.setHours(d.getHours() + diff);
37 return d;
38}
39
40function dateConvert(d) {
41 return new Date(d);

Callers 1

objectHead.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected