registration
This commit is contained in:
17
frontend/style/node_modules/date-fns/addSeconds.js
generated
vendored
17
frontend/style/node_modules/date-fns/addSeconds.js
generated
vendored
@@ -1,6 +1,8 @@
|
||||
"use strict";
|
||||
exports.addSeconds = addSeconds;
|
||||
var _index = require("./addMilliseconds.js");
|
||||
import { addMilliseconds } from "./addMilliseconds.js";
|
||||
|
||||
/**
|
||||
* The {@link addSeconds} function options.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @name addSeconds
|
||||
@@ -11,9 +13,11 @@ var _index = require("./addMilliseconds.js");
|
||||
* Add the specified number of seconds to the given date.
|
||||
*
|
||||
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
|
||||
* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
|
||||
*
|
||||
* @param date - The date to be changed
|
||||
* @param amount - The amount of seconds to be added.
|
||||
* @param options - An object with options
|
||||
*
|
||||
* @returns The new date with the seconds added
|
||||
*
|
||||
@@ -22,6 +26,9 @@ var _index = require("./addMilliseconds.js");
|
||||
* const result = addSeconds(new Date(2014, 6, 10, 12, 45, 0), 30)
|
||||
* //=> Thu Jul 10 2014 12:45:30
|
||||
*/
|
||||
function addSeconds(date, amount) {
|
||||
return (0, _index.addMilliseconds)(date, amount * 1000);
|
||||
export function addSeconds(date, amount, options) {
|
||||
return addMilliseconds(date, amount * 1000, options);
|
||||
}
|
||||
|
||||
// Fallback for modularized imports:
|
||||
export default addSeconds;
|
||||
|
||||
Reference in New Issue
Block a user