MCPcopy Index your code
hub / github.com/github/relative-time-element / RoundingOpts

Interface RoundingOpts

src/duration.ts:131–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129}
130
131interface RoundingOpts {
132 relativeTo: Date | number
133}
134
135export function roundToSingleUnit(duration: Duration, {relativeTo = Date.now()}: Partial<RoundingOpts> = {}): Duration {
136 relativeTo = new Date(relativeTo)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…