MCPcopy
hub / github.com/desktop/desktop / offsetFromNow

Function offsetFromNow

app/src/lib/offset-from.ts:20–21  ·  view source on GitHub ↗
(value: number, unit: Unit)

Source from the content-addressed store, hash-verified

18 * given amount.
19 */
20export const offsetFromNow = (value: number, unit: Unit): number =>
21 offsetFrom(Date.now(), value, unit)
22
23type Dateish = Date | number
24

Calls 1

offsetFromFunction · 0.85

Tested by

no test coverage detected