MCPcopy Create free account
hub / github.com/Modulus-Labs/RockyBot / getNumDaysSince

Function getNumDaysSince

front-end/src/util/utils.ts:34–37  ·  view source on GitHub ↗
(fromDate: Date, toDate: Date)

Source from the content-addressed store, hash-verified

32}
33
34export function getNumDaysSince(fromDate: Date, toDate: Date): number {
35 let timeDiffMs: number = toDate.getTime() - fromDate.getTime();
36 return Math.floor(timeDiffMs / MS_PER_DAY);
37}
38
39export function getShorthandTimeIntervalString(
40 oldTime: Date,

Callers 1

loadNetWorthFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected