Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
*/
20
export
const
offsetFromNow = (value: number, unit: Unit): number =>
21
offsetFrom(Date.now(), value, unit)
22
23
type
Dateish = Date | number
24
Callers
13
branch-pruner-test.ts
File · 0.90
offset-from-test.ts
File · 0.90
reflog-test.ts
File · 0.90
generateReleaseSummary
Function · 0.90
updateStashEntryCountMetric
Method · 0.90
isCopilotConflictDisclaimerFresh
Method · 0.90
_generateCommitMessage
Method · 0.90
_attemptCopilotConflictResolution
Method · 0.90
getOrCreateSubscription
Method · 0.90
pruneLocalBranches
Method · 0.90
setOnOpenBanner
Method · 0.90
CICheckRunRerunDialog
Class · 0.90
Calls
1
offsetFrom
Function · 0.85
Tested by
no test coverage detected