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

Function addSeconds

pkgs/core/src/addSeconds/index.ts:33–42  ·  view source on GitHub ↗
(
  date: DateArg<DateType>,
  amount: number,
  options?: AddSecondsOptions<ResultDate> | undefined,
)

Source from the content-addressed store, hash-verified

31 * //=> Thu Jul 10 2014 12:45:30
32 */
33export function addSeconds<
34 DateType extends Date,
35 ResultDate extends Date = DateType,
36>(
37 date: DateArg<DateType>,
38 amount: number,
39 options?: AddSecondsOptions<ResultDate> | undefined,
40): ResultDate {
41 return addMilliseconds(date, amount * 1000, options);
42}

Callers 2

test.tsFile · 0.90
subSecondsFunction · 0.90

Calls 1

addMillisecondsFunction · 0.90

Tested by

no test coverage detected