MCPcopy
hub / github.com/date-fns/date-fns / subMilliseconds

Function subMilliseconds

pkgs/core/src/subMilliseconds/index.ts:23–32  ·  view source on GitHub ↗
(
  date: DateArg<DateType>,
  amount: number,
  options?: SubMillisecondsOptions<ResultDate> | undefined,
)

Source from the content-addressed store, hash-verified

21 * @returns The new date with the milliseconds subtracted
22 */
23export function subMilliseconds<
24 DateType extends Date,
25 ResultDate extends Date = DateType,
26>(
27 date: DateArg<DateType>,
28 amount: number,
29 options?: SubMillisecondsOptions<ResultDate> | undefined,
30): ResultDate {
31 return addMilliseconds(date, -amount, options);
32}

Callers 1

test.tsFile · 0.90

Calls 1

addMillisecondsFunction · 0.90

Tested by

no test coverage detected