go integration and wikipedia
This commit is contained in:
parent
47a252e339
commit
ee90335b92
7828 changed files with 1307913 additions and 20807 deletions
28
frontend/node_modules/date-fns/subMinutes.mjs
generated
vendored
Normal file
28
frontend/node_modules/date-fns/subMinutes.mjs
generated
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
import { addMinutes } from "./addMinutes.mjs";
|
||||
|
||||
/**
|
||||
* @name subMinutes
|
||||
* @category Minute Helpers
|
||||
* @summary Subtract the specified number of minutes from the given date.
|
||||
*
|
||||
* @description
|
||||
* Subtract the specified number of minutes from 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).
|
||||
*
|
||||
* @param date - The date to be changed
|
||||
* @param amount - The amount of minutes to be subtracted.
|
||||
*
|
||||
* @returns The new date with the minutes subtracted
|
||||
*
|
||||
* @example
|
||||
* // Subtract 30 minutes from 10 July 2014 12:00:00:
|
||||
* const result = subMinutes(new Date(2014, 6, 10, 12, 0), 30)
|
||||
* //=> Thu Jul 10 2014 11:30:00
|
||||
*/
|
||||
export function subMinutes(date, amount) {
|
||||
return addMinutes(date, -amount);
|
||||
}
|
||||
|
||||
// Fallback for modularized imports:
|
||||
export default subMinutes;
|
||||
Loading…
Add table
Add a link
Reference in a new issue