Spaces:
Configuration error
Configuration error
luigi12345
commited on
Commit
•
b3873d4
1
Parent(s):
44dcc53
005a6b4dace17fae6abb746a6b6a8e05ef59f831361618052e2f425fe8e8f097
Browse files- workers1/auto3d/node_modules/date-fns/millisecondsToMinutes.mjs +31 -0
- workers1/auto3d/node_modules/date-fns/millisecondsToSeconds.d.mts +23 -0
- workers1/auto3d/node_modules/date-fns/millisecondsToSeconds.d.ts +23 -0
- workers1/auto3d/node_modules/date-fns/millisecondsToSeconds.js +30 -0
- workers1/auto3d/node_modules/date-fns/millisecondsToSeconds.mjs +31 -0
- workers1/auto3d/node_modules/date-fns/min.d.mts +27 -0
- workers1/auto3d/node_modules/date-fns/min.d.ts +27 -0
- workers1/auto3d/node_modules/date-fns/min.js +40 -0
- workers1/auto3d/node_modules/date-fns/min.mjs +41 -0
- workers1/auto3d/node_modules/date-fns/minutesToHours.d.mts +23 -0
- workers1/auto3d/node_modules/date-fns/minutesToHours.d.ts +23 -0
- workers1/auto3d/node_modules/date-fns/minutesToHours.js +30 -0
- workers1/auto3d/node_modules/date-fns/minutesToHours.mjs +31 -0
- workers1/auto3d/node_modules/date-fns/minutesToMilliseconds.d.mts +18 -0
- workers1/auto3d/node_modules/date-fns/minutesToMilliseconds.d.ts +18 -0
- workers1/auto3d/node_modules/date-fns/minutesToMilliseconds.js +24 -0
- workers1/auto3d/node_modules/date-fns/minutesToMilliseconds.mjs +25 -0
- workers1/auto3d/node_modules/date-fns/minutesToSeconds.d.mts +18 -0
- workers1/auto3d/node_modules/date-fns/minutesToSeconds.d.ts +18 -0
- workers1/auto3d/node_modules/date-fns/minutesToSeconds.js +24 -0
- workers1/auto3d/node_modules/date-fns/minutesToSeconds.mjs +25 -0
- workers1/auto3d/node_modules/date-fns/monthsToQuarters.d.mts +23 -0
- workers1/auto3d/node_modules/date-fns/monthsToQuarters.d.ts +23 -0
- workers1/auto3d/node_modules/date-fns/monthsToQuarters.js +30 -0
- workers1/auto3d/node_modules/date-fns/monthsToQuarters.mjs +31 -0
- workers1/auto3d/node_modules/date-fns/monthsToYears.d.mts +22 -0
- workers1/auto3d/node_modules/date-fns/monthsToYears.d.ts +22 -0
- workers1/auto3d/node_modules/date-fns/monthsToYears.js +29 -0
- workers1/auto3d/node_modules/date-fns/monthsToYears.mjs +30 -0
- workers1/auto3d/node_modules/date-fns/nextDay.d.mts +30 -0
- workers1/auto3d/node_modules/date-fns/nextDay.d.ts +30 -0
- workers1/auto3d/node_modules/date-fns/nextDay.js +36 -0
- workers1/auto3d/node_modules/date-fns/nextDay.mjs +37 -0
- workers1/auto3d/node_modules/date-fns/nextFriday.d.mts +22 -0
- workers1/auto3d/node_modules/date-fns/nextFriday.d.ts +22 -0
- workers1/auto3d/node_modules/date-fns/nextFriday.js +26 -0
- workers1/auto3d/node_modules/date-fns/nextFriday.mjs +27 -0
- workers1/auto3d/node_modules/date-fns/nextMonday.d.mts +22 -0
- workers1/auto3d/node_modules/date-fns/nextMonday.d.ts +22 -0
- workers1/auto3d/node_modules/date-fns/nextMonday.js +26 -0
- workers1/auto3d/node_modules/date-fns/nextMonday.mjs +27 -0
- workers1/auto3d/node_modules/date-fns/nextSaturday.d.mts +22 -0
- workers1/auto3d/node_modules/date-fns/nextSaturday.d.ts +22 -0
- workers1/auto3d/node_modules/date-fns/nextSaturday.js +26 -0
- workers1/auto3d/node_modules/date-fns/nextSaturday.mjs +27 -0
- workers1/auto3d/node_modules/date-fns/nextSunday.d.mts +22 -0
- workers1/auto3d/node_modules/date-fns/nextSunday.d.ts +22 -0
- workers1/auto3d/node_modules/date-fns/nextSunday.js +26 -0
- workers1/auto3d/node_modules/date-fns/nextSunday.mjs +27 -0
- workers1/auto3d/node_modules/date-fns/nextThursday.d.mts +22 -0
workers1/auto3d/node_modules/date-fns/millisecondsToMinutes.mjs
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { millisecondsInMinute } from "./constants.mjs";
|
2 |
+
|
3 |
+
/**
|
4 |
+
* @name millisecondsToMinutes
|
5 |
+
* @category Conversion Helpers
|
6 |
+
* @summary Convert milliseconds to minutes.
|
7 |
+
*
|
8 |
+
* @description
|
9 |
+
* Convert a number of milliseconds to a full number of minutes.
|
10 |
+
*
|
11 |
+
* @param milliseconds - The number of milliseconds to be converted
|
12 |
+
*
|
13 |
+
* @returns The number of milliseconds converted in minutes
|
14 |
+
*
|
15 |
+
* @example
|
16 |
+
* // Convert 60000 milliseconds to minutes:
|
17 |
+
* const result = millisecondsToMinutes(60000)
|
18 |
+
* //=> 1
|
19 |
+
*
|
20 |
+
* @example
|
21 |
+
* // It uses floor rounding:
|
22 |
+
* const result = millisecondsToMinutes(119999)
|
23 |
+
* //=> 1
|
24 |
+
*/
|
25 |
+
export function millisecondsToMinutes(milliseconds) {
|
26 |
+
const minutes = milliseconds / millisecondsInMinute;
|
27 |
+
return Math.trunc(minutes);
|
28 |
+
}
|
29 |
+
|
30 |
+
// Fallback for modularized imports:
|
31 |
+
export default millisecondsToMinutes;
|
workers1/auto3d/node_modules/date-fns/millisecondsToSeconds.d.mts
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* @name millisecondsToSeconds
|
3 |
+
* @category Conversion Helpers
|
4 |
+
* @summary Convert milliseconds to seconds.
|
5 |
+
*
|
6 |
+
* @description
|
7 |
+
* Convert a number of milliseconds to a full number of seconds.
|
8 |
+
*
|
9 |
+
* @param milliseconds - The number of milliseconds to be converted
|
10 |
+
*
|
11 |
+
* @returns The number of milliseconds converted in seconds
|
12 |
+
*
|
13 |
+
* @example
|
14 |
+
* // Convert 1000 miliseconds to seconds:
|
15 |
+
* const result = millisecondsToSeconds(1000)
|
16 |
+
* //=> 1
|
17 |
+
*
|
18 |
+
* @example
|
19 |
+
* // It uses floor rounding:
|
20 |
+
* const result = millisecondsToSeconds(1999)
|
21 |
+
* //=> 1
|
22 |
+
*/
|
23 |
+
export declare function millisecondsToSeconds(milliseconds: number): number;
|
workers1/auto3d/node_modules/date-fns/millisecondsToSeconds.d.ts
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* @name millisecondsToSeconds
|
3 |
+
* @category Conversion Helpers
|
4 |
+
* @summary Convert milliseconds to seconds.
|
5 |
+
*
|
6 |
+
* @description
|
7 |
+
* Convert a number of milliseconds to a full number of seconds.
|
8 |
+
*
|
9 |
+
* @param milliseconds - The number of milliseconds to be converted
|
10 |
+
*
|
11 |
+
* @returns The number of milliseconds converted in seconds
|
12 |
+
*
|
13 |
+
* @example
|
14 |
+
* // Convert 1000 miliseconds to seconds:
|
15 |
+
* const result = millisecondsToSeconds(1000)
|
16 |
+
* //=> 1
|
17 |
+
*
|
18 |
+
* @example
|
19 |
+
* // It uses floor rounding:
|
20 |
+
* const result = millisecondsToSeconds(1999)
|
21 |
+
* //=> 1
|
22 |
+
*/
|
23 |
+
export declare function millisecondsToSeconds(milliseconds: number): number;
|
workers1/auto3d/node_modules/date-fns/millisecondsToSeconds.js
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"use strict";
|
2 |
+
exports.millisecondsToSeconds = millisecondsToSeconds;
|
3 |
+
var _index = require("./constants.js");
|
4 |
+
|
5 |
+
/**
|
6 |
+
* @name millisecondsToSeconds
|
7 |
+
* @category Conversion Helpers
|
8 |
+
* @summary Convert milliseconds to seconds.
|
9 |
+
*
|
10 |
+
* @description
|
11 |
+
* Convert a number of milliseconds to a full number of seconds.
|
12 |
+
*
|
13 |
+
* @param milliseconds - The number of milliseconds to be converted
|
14 |
+
*
|
15 |
+
* @returns The number of milliseconds converted in seconds
|
16 |
+
*
|
17 |
+
* @example
|
18 |
+
* // Convert 1000 miliseconds to seconds:
|
19 |
+
* const result = millisecondsToSeconds(1000)
|
20 |
+
* //=> 1
|
21 |
+
*
|
22 |
+
* @example
|
23 |
+
* // It uses floor rounding:
|
24 |
+
* const result = millisecondsToSeconds(1999)
|
25 |
+
* //=> 1
|
26 |
+
*/
|
27 |
+
function millisecondsToSeconds(milliseconds) {
|
28 |
+
const seconds = milliseconds / _index.millisecondsInSecond;
|
29 |
+
return Math.trunc(seconds);
|
30 |
+
}
|
workers1/auto3d/node_modules/date-fns/millisecondsToSeconds.mjs
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { millisecondsInSecond } from "./constants.mjs";
|
2 |
+
|
3 |
+
/**
|
4 |
+
* @name millisecondsToSeconds
|
5 |
+
* @category Conversion Helpers
|
6 |
+
* @summary Convert milliseconds to seconds.
|
7 |
+
*
|
8 |
+
* @description
|
9 |
+
* Convert a number of milliseconds to a full number of seconds.
|
10 |
+
*
|
11 |
+
* @param milliseconds - The number of milliseconds to be converted
|
12 |
+
*
|
13 |
+
* @returns The number of milliseconds converted in seconds
|
14 |
+
*
|
15 |
+
* @example
|
16 |
+
* // Convert 1000 miliseconds to seconds:
|
17 |
+
* const result = millisecondsToSeconds(1000)
|
18 |
+
* //=> 1
|
19 |
+
*
|
20 |
+
* @example
|
21 |
+
* // It uses floor rounding:
|
22 |
+
* const result = millisecondsToSeconds(1999)
|
23 |
+
* //=> 1
|
24 |
+
*/
|
25 |
+
export function millisecondsToSeconds(milliseconds) {
|
26 |
+
const seconds = milliseconds / millisecondsInSecond;
|
27 |
+
return Math.trunc(seconds);
|
28 |
+
}
|
29 |
+
|
30 |
+
// Fallback for modularized imports:
|
31 |
+
export default millisecondsToSeconds;
|
workers1/auto3d/node_modules/date-fns/min.d.mts
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* @name min
|
3 |
+
* @category Common Helpers
|
4 |
+
* @summary Returns the earliest of the given dates.
|
5 |
+
*
|
6 |
+
* @description
|
7 |
+
* Returns the earliest of the given dates.
|
8 |
+
*
|
9 |
+
* @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).
|
10 |
+
*
|
11 |
+
* @param dates - The dates to compare
|
12 |
+
*
|
13 |
+
* @returns The earliest of the dates
|
14 |
+
*
|
15 |
+
* @example
|
16 |
+
* // Which of these dates is the earliest?
|
17 |
+
* const result = min([
|
18 |
+
* new Date(1989, 6, 10),
|
19 |
+
* new Date(1987, 1, 11),
|
20 |
+
* new Date(1995, 6, 2),
|
21 |
+
* new Date(1990, 0, 1)
|
22 |
+
* ])
|
23 |
+
* //=> Wed Feb 11 1987 00:00:00
|
24 |
+
*/
|
25 |
+
export declare function min<DateType extends Date>(
|
26 |
+
dates: Array<DateType | number | string>,
|
27 |
+
): DateType | Date;
|
workers1/auto3d/node_modules/date-fns/min.d.ts
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* @name min
|
3 |
+
* @category Common Helpers
|
4 |
+
* @summary Returns the earliest of the given dates.
|
5 |
+
*
|
6 |
+
* @description
|
7 |
+
* Returns the earliest of the given dates.
|
8 |
+
*
|
9 |
+
* @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).
|
10 |
+
*
|
11 |
+
* @param dates - The dates to compare
|
12 |
+
*
|
13 |
+
* @returns The earliest of the dates
|
14 |
+
*
|
15 |
+
* @example
|
16 |
+
* // Which of these dates is the earliest?
|
17 |
+
* const result = min([
|
18 |
+
* new Date(1989, 6, 10),
|
19 |
+
* new Date(1987, 1, 11),
|
20 |
+
* new Date(1995, 6, 2),
|
21 |
+
* new Date(1990, 0, 1)
|
22 |
+
* ])
|
23 |
+
* //=> Wed Feb 11 1987 00:00:00
|
24 |
+
*/
|
25 |
+
export declare function min<DateType extends Date>(
|
26 |
+
dates: Array<DateType | number | string>,
|
27 |
+
): DateType | Date;
|
workers1/auto3d/node_modules/date-fns/min.js
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"use strict";
|
2 |
+
exports.min = min;
|
3 |
+
var _index = require("./toDate.js");
|
4 |
+
|
5 |
+
/**
|
6 |
+
* @name min
|
7 |
+
* @category Common Helpers
|
8 |
+
* @summary Returns the earliest of the given dates.
|
9 |
+
*
|
10 |
+
* @description
|
11 |
+
* Returns the earliest of the given dates.
|
12 |
+
*
|
13 |
+
* @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).
|
14 |
+
*
|
15 |
+
* @param dates - The dates to compare
|
16 |
+
*
|
17 |
+
* @returns The earliest of the dates
|
18 |
+
*
|
19 |
+
* @example
|
20 |
+
* // Which of these dates is the earliest?
|
21 |
+
* const result = min([
|
22 |
+
* new Date(1989, 6, 10),
|
23 |
+
* new Date(1987, 1, 11),
|
24 |
+
* new Date(1995, 6, 2),
|
25 |
+
* new Date(1990, 0, 1)
|
26 |
+
* ])
|
27 |
+
* //=> Wed Feb 11 1987 00:00:00
|
28 |
+
*/
|
29 |
+
function min(dates) {
|
30 |
+
let result;
|
31 |
+
|
32 |
+
dates.forEach((dirtyDate) => {
|
33 |
+
const date = (0, _index.toDate)(dirtyDate);
|
34 |
+
if (!result || result > date || isNaN(+date)) {
|
35 |
+
result = date;
|
36 |
+
}
|
37 |
+
});
|
38 |
+
|
39 |
+
return result || new Date(NaN);
|
40 |
+
}
|
workers1/auto3d/node_modules/date-fns/min.mjs
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { toDate } from "./toDate.mjs";
|
2 |
+
|
3 |
+
/**
|
4 |
+
* @name min
|
5 |
+
* @category Common Helpers
|
6 |
+
* @summary Returns the earliest of the given dates.
|
7 |
+
*
|
8 |
+
* @description
|
9 |
+
* Returns the earliest of the given dates.
|
10 |
+
*
|
11 |
+
* @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).
|
12 |
+
*
|
13 |
+
* @param dates - The dates to compare
|
14 |
+
*
|
15 |
+
* @returns The earliest of the dates
|
16 |
+
*
|
17 |
+
* @example
|
18 |
+
* // Which of these dates is the earliest?
|
19 |
+
* const result = min([
|
20 |
+
* new Date(1989, 6, 10),
|
21 |
+
* new Date(1987, 1, 11),
|
22 |
+
* new Date(1995, 6, 2),
|
23 |
+
* new Date(1990, 0, 1)
|
24 |
+
* ])
|
25 |
+
* //=> Wed Feb 11 1987 00:00:00
|
26 |
+
*/
|
27 |
+
export function min(dates) {
|
28 |
+
let result;
|
29 |
+
|
30 |
+
dates.forEach((dirtyDate) => {
|
31 |
+
const date = toDate(dirtyDate);
|
32 |
+
if (!result || result > date || isNaN(+date)) {
|
33 |
+
result = date;
|
34 |
+
}
|
35 |
+
});
|
36 |
+
|
37 |
+
return result || new Date(NaN);
|
38 |
+
}
|
39 |
+
|
40 |
+
// Fallback for modularized imports:
|
41 |
+
export default min;
|
workers1/auto3d/node_modules/date-fns/minutesToHours.d.mts
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* @name minutesToHours
|
3 |
+
* @category Conversion Helpers
|
4 |
+
* @summary Convert minutes to hours.
|
5 |
+
*
|
6 |
+
* @description
|
7 |
+
* Convert a number of minutes to a full number of hours.
|
8 |
+
*
|
9 |
+
* @param minutes - The number of minutes to be converted
|
10 |
+
*
|
11 |
+
* @returns The number of minutes converted in hours
|
12 |
+
*
|
13 |
+
* @example
|
14 |
+
* // Convert 140 minutes to hours:
|
15 |
+
* const result = minutesToHours(120)
|
16 |
+
* //=> 2
|
17 |
+
*
|
18 |
+
* @example
|
19 |
+
* // It uses floor rounding:
|
20 |
+
* const result = minutesToHours(179)
|
21 |
+
* //=> 2
|
22 |
+
*/
|
23 |
+
export declare function minutesToHours(minutes: number): number;
|
workers1/auto3d/node_modules/date-fns/minutesToHours.d.ts
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* @name minutesToHours
|
3 |
+
* @category Conversion Helpers
|
4 |
+
* @summary Convert minutes to hours.
|
5 |
+
*
|
6 |
+
* @description
|
7 |
+
* Convert a number of minutes to a full number of hours.
|
8 |
+
*
|
9 |
+
* @param minutes - The number of minutes to be converted
|
10 |
+
*
|
11 |
+
* @returns The number of minutes converted in hours
|
12 |
+
*
|
13 |
+
* @example
|
14 |
+
* // Convert 140 minutes to hours:
|
15 |
+
* const result = minutesToHours(120)
|
16 |
+
* //=> 2
|
17 |
+
*
|
18 |
+
* @example
|
19 |
+
* // It uses floor rounding:
|
20 |
+
* const result = minutesToHours(179)
|
21 |
+
* //=> 2
|
22 |
+
*/
|
23 |
+
export declare function minutesToHours(minutes: number): number;
|
workers1/auto3d/node_modules/date-fns/minutesToHours.js
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"use strict";
|
2 |
+
exports.minutesToHours = minutesToHours;
|
3 |
+
var _index = require("./constants.js");
|
4 |
+
|
5 |
+
/**
|
6 |
+
* @name minutesToHours
|
7 |
+
* @category Conversion Helpers
|
8 |
+
* @summary Convert minutes to hours.
|
9 |
+
*
|
10 |
+
* @description
|
11 |
+
* Convert a number of minutes to a full number of hours.
|
12 |
+
*
|
13 |
+
* @param minutes - The number of minutes to be converted
|
14 |
+
*
|
15 |
+
* @returns The number of minutes converted in hours
|
16 |
+
*
|
17 |
+
* @example
|
18 |
+
* // Convert 140 minutes to hours:
|
19 |
+
* const result = minutesToHours(120)
|
20 |
+
* //=> 2
|
21 |
+
*
|
22 |
+
* @example
|
23 |
+
* // It uses floor rounding:
|
24 |
+
* const result = minutesToHours(179)
|
25 |
+
* //=> 2
|
26 |
+
*/
|
27 |
+
function minutesToHours(minutes) {
|
28 |
+
const hours = minutes / _index.minutesInHour;
|
29 |
+
return Math.trunc(hours);
|
30 |
+
}
|
workers1/auto3d/node_modules/date-fns/minutesToHours.mjs
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { minutesInHour } from "./constants.mjs";
|
2 |
+
|
3 |
+
/**
|
4 |
+
* @name minutesToHours
|
5 |
+
* @category Conversion Helpers
|
6 |
+
* @summary Convert minutes to hours.
|
7 |
+
*
|
8 |
+
* @description
|
9 |
+
* Convert a number of minutes to a full number of hours.
|
10 |
+
*
|
11 |
+
* @param minutes - The number of minutes to be converted
|
12 |
+
*
|
13 |
+
* @returns The number of minutes converted in hours
|
14 |
+
*
|
15 |
+
* @example
|
16 |
+
* // Convert 140 minutes to hours:
|
17 |
+
* const result = minutesToHours(120)
|
18 |
+
* //=> 2
|
19 |
+
*
|
20 |
+
* @example
|
21 |
+
* // It uses floor rounding:
|
22 |
+
* const result = minutesToHours(179)
|
23 |
+
* //=> 2
|
24 |
+
*/
|
25 |
+
export function minutesToHours(minutes) {
|
26 |
+
const hours = minutes / minutesInHour;
|
27 |
+
return Math.trunc(hours);
|
28 |
+
}
|
29 |
+
|
30 |
+
// Fallback for modularized imports:
|
31 |
+
export default minutesToHours;
|
workers1/auto3d/node_modules/date-fns/minutesToMilliseconds.d.mts
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* @name minutesToMilliseconds
|
3 |
+
* @category Conversion Helpers
|
4 |
+
* @summary Convert minutes to milliseconds.
|
5 |
+
*
|
6 |
+
* @description
|
7 |
+
* Convert a number of minutes to a full number of milliseconds.
|
8 |
+
*
|
9 |
+
* @param minutes - The number of minutes to be converted
|
10 |
+
*
|
11 |
+
* @returns The number of minutes converted in milliseconds
|
12 |
+
*
|
13 |
+
* @example
|
14 |
+
* // Convert 2 minutes to milliseconds
|
15 |
+
* const result = minutesToMilliseconds(2)
|
16 |
+
* //=> 120000
|
17 |
+
*/
|
18 |
+
export declare function minutesToMilliseconds(minutes: number): number;
|
workers1/auto3d/node_modules/date-fns/minutesToMilliseconds.d.ts
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* @name minutesToMilliseconds
|
3 |
+
* @category Conversion Helpers
|
4 |
+
* @summary Convert minutes to milliseconds.
|
5 |
+
*
|
6 |
+
* @description
|
7 |
+
* Convert a number of minutes to a full number of milliseconds.
|
8 |
+
*
|
9 |
+
* @param minutes - The number of minutes to be converted
|
10 |
+
*
|
11 |
+
* @returns The number of minutes converted in milliseconds
|
12 |
+
*
|
13 |
+
* @example
|
14 |
+
* // Convert 2 minutes to milliseconds
|
15 |
+
* const result = minutesToMilliseconds(2)
|
16 |
+
* //=> 120000
|
17 |
+
*/
|
18 |
+
export declare function minutesToMilliseconds(minutes: number): number;
|
workers1/auto3d/node_modules/date-fns/minutesToMilliseconds.js
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"use strict";
|
2 |
+
exports.minutesToMilliseconds = minutesToMilliseconds;
|
3 |
+
var _index = require("./constants.js");
|
4 |
+
|
5 |
+
/**
|
6 |
+
* @name minutesToMilliseconds
|
7 |
+
* @category Conversion Helpers
|
8 |
+
* @summary Convert minutes to milliseconds.
|
9 |
+
*
|
10 |
+
* @description
|
11 |
+
* Convert a number of minutes to a full number of milliseconds.
|
12 |
+
*
|
13 |
+
* @param minutes - The number of minutes to be converted
|
14 |
+
*
|
15 |
+
* @returns The number of minutes converted in milliseconds
|
16 |
+
*
|
17 |
+
* @example
|
18 |
+
* // Convert 2 minutes to milliseconds
|
19 |
+
* const result = minutesToMilliseconds(2)
|
20 |
+
* //=> 120000
|
21 |
+
*/
|
22 |
+
function minutesToMilliseconds(minutes) {
|
23 |
+
return Math.trunc(minutes * _index.millisecondsInMinute);
|
24 |
+
}
|
workers1/auto3d/node_modules/date-fns/minutesToMilliseconds.mjs
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { millisecondsInMinute } from "./constants.mjs";
|
2 |
+
|
3 |
+
/**
|
4 |
+
* @name minutesToMilliseconds
|
5 |
+
* @category Conversion Helpers
|
6 |
+
* @summary Convert minutes to milliseconds.
|
7 |
+
*
|
8 |
+
* @description
|
9 |
+
* Convert a number of minutes to a full number of milliseconds.
|
10 |
+
*
|
11 |
+
* @param minutes - The number of minutes to be converted
|
12 |
+
*
|
13 |
+
* @returns The number of minutes converted in milliseconds
|
14 |
+
*
|
15 |
+
* @example
|
16 |
+
* // Convert 2 minutes to milliseconds
|
17 |
+
* const result = minutesToMilliseconds(2)
|
18 |
+
* //=> 120000
|
19 |
+
*/
|
20 |
+
export function minutesToMilliseconds(minutes) {
|
21 |
+
return Math.trunc(minutes * millisecondsInMinute);
|
22 |
+
}
|
23 |
+
|
24 |
+
// Fallback for modularized imports:
|
25 |
+
export default minutesToMilliseconds;
|
workers1/auto3d/node_modules/date-fns/minutesToSeconds.d.mts
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* @name minutesToSeconds
|
3 |
+
* @category Conversion Helpers
|
4 |
+
* @summary Convert minutes to seconds.
|
5 |
+
*
|
6 |
+
* @description
|
7 |
+
* Convert a number of minutes to a full number of seconds.
|
8 |
+
*
|
9 |
+
* @param minutes - The number of minutes to be converted
|
10 |
+
*
|
11 |
+
* @returns The number of minutes converted in seconds
|
12 |
+
*
|
13 |
+
* @example
|
14 |
+
* // Convert 2 minutes to seconds
|
15 |
+
* const result = minutesToSeconds(2)
|
16 |
+
* //=> 120
|
17 |
+
*/
|
18 |
+
export declare function minutesToSeconds(minutes: number): number;
|
workers1/auto3d/node_modules/date-fns/minutesToSeconds.d.ts
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* @name minutesToSeconds
|
3 |
+
* @category Conversion Helpers
|
4 |
+
* @summary Convert minutes to seconds.
|
5 |
+
*
|
6 |
+
* @description
|
7 |
+
* Convert a number of minutes to a full number of seconds.
|
8 |
+
*
|
9 |
+
* @param minutes - The number of minutes to be converted
|
10 |
+
*
|
11 |
+
* @returns The number of minutes converted in seconds
|
12 |
+
*
|
13 |
+
* @example
|
14 |
+
* // Convert 2 minutes to seconds
|
15 |
+
* const result = minutesToSeconds(2)
|
16 |
+
* //=> 120
|
17 |
+
*/
|
18 |
+
export declare function minutesToSeconds(minutes: number): number;
|
workers1/auto3d/node_modules/date-fns/minutesToSeconds.js
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"use strict";
|
2 |
+
exports.minutesToSeconds = minutesToSeconds;
|
3 |
+
var _index = require("./constants.js");
|
4 |
+
|
5 |
+
/**
|
6 |
+
* @name minutesToSeconds
|
7 |
+
* @category Conversion Helpers
|
8 |
+
* @summary Convert minutes to seconds.
|
9 |
+
*
|
10 |
+
* @description
|
11 |
+
* Convert a number of minutes to a full number of seconds.
|
12 |
+
*
|
13 |
+
* @param minutes - The number of minutes to be converted
|
14 |
+
*
|
15 |
+
* @returns The number of minutes converted in seconds
|
16 |
+
*
|
17 |
+
* @example
|
18 |
+
* // Convert 2 minutes to seconds
|
19 |
+
* const result = minutesToSeconds(2)
|
20 |
+
* //=> 120
|
21 |
+
*/
|
22 |
+
function minutesToSeconds(minutes) {
|
23 |
+
return Math.trunc(minutes * _index.secondsInMinute);
|
24 |
+
}
|
workers1/auto3d/node_modules/date-fns/minutesToSeconds.mjs
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { secondsInMinute } from "./constants.mjs";
|
2 |
+
|
3 |
+
/**
|
4 |
+
* @name minutesToSeconds
|
5 |
+
* @category Conversion Helpers
|
6 |
+
* @summary Convert minutes to seconds.
|
7 |
+
*
|
8 |
+
* @description
|
9 |
+
* Convert a number of minutes to a full number of seconds.
|
10 |
+
*
|
11 |
+
* @param minutes - The number of minutes to be converted
|
12 |
+
*
|
13 |
+
* @returns The number of minutes converted in seconds
|
14 |
+
*
|
15 |
+
* @example
|
16 |
+
* // Convert 2 minutes to seconds
|
17 |
+
* const result = minutesToSeconds(2)
|
18 |
+
* //=> 120
|
19 |
+
*/
|
20 |
+
export function minutesToSeconds(minutes) {
|
21 |
+
return Math.trunc(minutes * secondsInMinute);
|
22 |
+
}
|
23 |
+
|
24 |
+
// Fallback for modularized imports:
|
25 |
+
export default minutesToSeconds;
|
workers1/auto3d/node_modules/date-fns/monthsToQuarters.d.mts
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* @name monthsToQuarters
|
3 |
+
* @category Conversion Helpers
|
4 |
+
* @summary Convert number of months to quarters.
|
5 |
+
*
|
6 |
+
* @description
|
7 |
+
* Convert a number of months to a full number of quarters.
|
8 |
+
*
|
9 |
+
* @param months - The number of months to be converted.
|
10 |
+
*
|
11 |
+
* @returns The number of months converted in quarters
|
12 |
+
*
|
13 |
+
* @example
|
14 |
+
* // Convert 6 months to quarters:
|
15 |
+
* const result = monthsToQuarters(6)
|
16 |
+
* //=> 2
|
17 |
+
*
|
18 |
+
* @example
|
19 |
+
* // It uses floor rounding:
|
20 |
+
* const result = monthsToQuarters(7)
|
21 |
+
* //=> 2
|
22 |
+
*/
|
23 |
+
export declare function monthsToQuarters(months: number): number;
|
workers1/auto3d/node_modules/date-fns/monthsToQuarters.d.ts
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* @name monthsToQuarters
|
3 |
+
* @category Conversion Helpers
|
4 |
+
* @summary Convert number of months to quarters.
|
5 |
+
*
|
6 |
+
* @description
|
7 |
+
* Convert a number of months to a full number of quarters.
|
8 |
+
*
|
9 |
+
* @param months - The number of months to be converted.
|
10 |
+
*
|
11 |
+
* @returns The number of months converted in quarters
|
12 |
+
*
|
13 |
+
* @example
|
14 |
+
* // Convert 6 months to quarters:
|
15 |
+
* const result = monthsToQuarters(6)
|
16 |
+
* //=> 2
|
17 |
+
*
|
18 |
+
* @example
|
19 |
+
* // It uses floor rounding:
|
20 |
+
* const result = monthsToQuarters(7)
|
21 |
+
* //=> 2
|
22 |
+
*/
|
23 |
+
export declare function monthsToQuarters(months: number): number;
|
workers1/auto3d/node_modules/date-fns/monthsToQuarters.js
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"use strict";
|
2 |
+
exports.monthsToQuarters = monthsToQuarters;
|
3 |
+
var _index = require("./constants.js");
|
4 |
+
|
5 |
+
/**
|
6 |
+
* @name monthsToQuarters
|
7 |
+
* @category Conversion Helpers
|
8 |
+
* @summary Convert number of months to quarters.
|
9 |
+
*
|
10 |
+
* @description
|
11 |
+
* Convert a number of months to a full number of quarters.
|
12 |
+
*
|
13 |
+
* @param months - The number of months to be converted.
|
14 |
+
*
|
15 |
+
* @returns The number of months converted in quarters
|
16 |
+
*
|
17 |
+
* @example
|
18 |
+
* // Convert 6 months to quarters:
|
19 |
+
* const result = monthsToQuarters(6)
|
20 |
+
* //=> 2
|
21 |
+
*
|
22 |
+
* @example
|
23 |
+
* // It uses floor rounding:
|
24 |
+
* const result = monthsToQuarters(7)
|
25 |
+
* //=> 2
|
26 |
+
*/
|
27 |
+
function monthsToQuarters(months) {
|
28 |
+
const quarters = months / _index.monthsInQuarter;
|
29 |
+
return Math.trunc(quarters);
|
30 |
+
}
|
workers1/auto3d/node_modules/date-fns/monthsToQuarters.mjs
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { monthsInQuarter } from "./constants.mjs";
|
2 |
+
|
3 |
+
/**
|
4 |
+
* @name monthsToQuarters
|
5 |
+
* @category Conversion Helpers
|
6 |
+
* @summary Convert number of months to quarters.
|
7 |
+
*
|
8 |
+
* @description
|
9 |
+
* Convert a number of months to a full number of quarters.
|
10 |
+
*
|
11 |
+
* @param months - The number of months to be converted.
|
12 |
+
*
|
13 |
+
* @returns The number of months converted in quarters
|
14 |
+
*
|
15 |
+
* @example
|
16 |
+
* // Convert 6 months to quarters:
|
17 |
+
* const result = monthsToQuarters(6)
|
18 |
+
* //=> 2
|
19 |
+
*
|
20 |
+
* @example
|
21 |
+
* // It uses floor rounding:
|
22 |
+
* const result = monthsToQuarters(7)
|
23 |
+
* //=> 2
|
24 |
+
*/
|
25 |
+
export function monthsToQuarters(months) {
|
26 |
+
const quarters = months / monthsInQuarter;
|
27 |
+
return Math.trunc(quarters);
|
28 |
+
}
|
29 |
+
|
30 |
+
// Fallback for modularized imports:
|
31 |
+
export default monthsToQuarters;
|
workers1/auto3d/node_modules/date-fns/monthsToYears.d.mts
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* @name monthsToYears
|
3 |
+
* @category Conversion Helpers
|
4 |
+
* @summary Convert number of months to years.
|
5 |
+
*
|
6 |
+
* @description
|
7 |
+
* Convert a number of months to a full number of years.
|
8 |
+
*
|
9 |
+
* @param months - The number of months to be converted
|
10 |
+
*
|
11 |
+
* @returns The number of months converted in years
|
12 |
+
*
|
13 |
+
* @example
|
14 |
+
* // Convert 36 months to years:
|
15 |
+
* const result = monthsToYears(36)
|
16 |
+
* //=> 3
|
17 |
+
*
|
18 |
+
* // It uses floor rounding:
|
19 |
+
* const result = monthsToYears(40)
|
20 |
+
* //=> 3
|
21 |
+
*/
|
22 |
+
export declare function monthsToYears(months: number): number;
|
workers1/auto3d/node_modules/date-fns/monthsToYears.d.ts
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* @name monthsToYears
|
3 |
+
* @category Conversion Helpers
|
4 |
+
* @summary Convert number of months to years.
|
5 |
+
*
|
6 |
+
* @description
|
7 |
+
* Convert a number of months to a full number of years.
|
8 |
+
*
|
9 |
+
* @param months - The number of months to be converted
|
10 |
+
*
|
11 |
+
* @returns The number of months converted in years
|
12 |
+
*
|
13 |
+
* @example
|
14 |
+
* // Convert 36 months to years:
|
15 |
+
* const result = monthsToYears(36)
|
16 |
+
* //=> 3
|
17 |
+
*
|
18 |
+
* // It uses floor rounding:
|
19 |
+
* const result = monthsToYears(40)
|
20 |
+
* //=> 3
|
21 |
+
*/
|
22 |
+
export declare function monthsToYears(months: number): number;
|
workers1/auto3d/node_modules/date-fns/monthsToYears.js
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"use strict";
|
2 |
+
exports.monthsToYears = monthsToYears;
|
3 |
+
var _index = require("./constants.js");
|
4 |
+
|
5 |
+
/**
|
6 |
+
* @name monthsToYears
|
7 |
+
* @category Conversion Helpers
|
8 |
+
* @summary Convert number of months to years.
|
9 |
+
*
|
10 |
+
* @description
|
11 |
+
* Convert a number of months to a full number of years.
|
12 |
+
*
|
13 |
+
* @param months - The number of months to be converted
|
14 |
+
*
|
15 |
+
* @returns The number of months converted in years
|
16 |
+
*
|
17 |
+
* @example
|
18 |
+
* // Convert 36 months to years:
|
19 |
+
* const result = monthsToYears(36)
|
20 |
+
* //=> 3
|
21 |
+
*
|
22 |
+
* // It uses floor rounding:
|
23 |
+
* const result = monthsToYears(40)
|
24 |
+
* //=> 3
|
25 |
+
*/
|
26 |
+
function monthsToYears(months) {
|
27 |
+
const years = months / _index.monthsInYear;
|
28 |
+
return Math.trunc(years);
|
29 |
+
}
|
workers1/auto3d/node_modules/date-fns/monthsToYears.mjs
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { monthsInYear } from "./constants.mjs";
|
2 |
+
|
3 |
+
/**
|
4 |
+
* @name monthsToYears
|
5 |
+
* @category Conversion Helpers
|
6 |
+
* @summary Convert number of months to years.
|
7 |
+
*
|
8 |
+
* @description
|
9 |
+
* Convert a number of months to a full number of years.
|
10 |
+
*
|
11 |
+
* @param months - The number of months to be converted
|
12 |
+
*
|
13 |
+
* @returns The number of months converted in years
|
14 |
+
*
|
15 |
+
* @example
|
16 |
+
* // Convert 36 months to years:
|
17 |
+
* const result = monthsToYears(36)
|
18 |
+
* //=> 3
|
19 |
+
*
|
20 |
+
* // It uses floor rounding:
|
21 |
+
* const result = monthsToYears(40)
|
22 |
+
* //=> 3
|
23 |
+
*/
|
24 |
+
export function monthsToYears(months) {
|
25 |
+
const years = months / monthsInYear;
|
26 |
+
return Math.trunc(years);
|
27 |
+
}
|
28 |
+
|
29 |
+
// Fallback for modularized imports:
|
30 |
+
export default monthsToYears;
|
workers1/auto3d/node_modules/date-fns/nextDay.d.mts
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import type { Day } from "./types.js";
|
2 |
+
/**
|
3 |
+
* @name nextDay
|
4 |
+
* @category Weekday Helpers
|
5 |
+
* @summary When is the next day of the week?
|
6 |
+
*
|
7 |
+
* @description
|
8 |
+
* When is the next day of the week? 0-6 the day of the week, 0 represents Sunday.
|
9 |
+
*
|
10 |
+
* @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).
|
11 |
+
*
|
12 |
+
* @param date - The date to check
|
13 |
+
* @param day - day of the week
|
14 |
+
*
|
15 |
+
* @returns The date is the next day of week
|
16 |
+
*
|
17 |
+
* @example
|
18 |
+
* // When is the next Monday after Mar, 20, 2020?
|
19 |
+
* const result = nextDay(new Date(2020, 2, 20), 1)
|
20 |
+
* //=> Mon Mar 23 2020 00:00:00
|
21 |
+
*
|
22 |
+
* @example
|
23 |
+
* // When is the next Tuesday after Mar, 21, 2020?
|
24 |
+
* const result = nextDay(new Date(2020, 2, 21), 2)
|
25 |
+
* //=> Tue Mar 24 2020 00:00:00
|
26 |
+
*/
|
27 |
+
export declare function nextDay<DateType extends Date>(
|
28 |
+
date: DateType | number | string,
|
29 |
+
day: Day,
|
30 |
+
): DateType;
|
workers1/auto3d/node_modules/date-fns/nextDay.d.ts
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import type { Day } from "./types.js";
|
2 |
+
/**
|
3 |
+
* @name nextDay
|
4 |
+
* @category Weekday Helpers
|
5 |
+
* @summary When is the next day of the week?
|
6 |
+
*
|
7 |
+
* @description
|
8 |
+
* When is the next day of the week? 0-6 the day of the week, 0 represents Sunday.
|
9 |
+
*
|
10 |
+
* @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).
|
11 |
+
*
|
12 |
+
* @param date - The date to check
|
13 |
+
* @param day - day of the week
|
14 |
+
*
|
15 |
+
* @returns The date is the next day of week
|
16 |
+
*
|
17 |
+
* @example
|
18 |
+
* // When is the next Monday after Mar, 20, 2020?
|
19 |
+
* const result = nextDay(new Date(2020, 2, 20), 1)
|
20 |
+
* //=> Mon Mar 23 2020 00:00:00
|
21 |
+
*
|
22 |
+
* @example
|
23 |
+
* // When is the next Tuesday after Mar, 21, 2020?
|
24 |
+
* const result = nextDay(new Date(2020, 2, 21), 2)
|
25 |
+
* //=> Tue Mar 24 2020 00:00:00
|
26 |
+
*/
|
27 |
+
export declare function nextDay<DateType extends Date>(
|
28 |
+
date: DateType | number | string,
|
29 |
+
day: Day,
|
30 |
+
): DateType;
|
workers1/auto3d/node_modules/date-fns/nextDay.js
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"use strict";
|
2 |
+
exports.nextDay = nextDay;
|
3 |
+
var _index = require("./addDays.js");
|
4 |
+
var _index2 = require("./getDay.js");
|
5 |
+
|
6 |
+
/**
|
7 |
+
* @name nextDay
|
8 |
+
* @category Weekday Helpers
|
9 |
+
* @summary When is the next day of the week?
|
10 |
+
*
|
11 |
+
* @description
|
12 |
+
* When is the next day of the week? 0-6 the day of the week, 0 represents Sunday.
|
13 |
+
*
|
14 |
+
* @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).
|
15 |
+
*
|
16 |
+
* @param date - The date to check
|
17 |
+
* @param day - day of the week
|
18 |
+
*
|
19 |
+
* @returns The date is the next day of week
|
20 |
+
*
|
21 |
+
* @example
|
22 |
+
* // When is the next Monday after Mar, 20, 2020?
|
23 |
+
* const result = nextDay(new Date(2020, 2, 20), 1)
|
24 |
+
* //=> Mon Mar 23 2020 00:00:00
|
25 |
+
*
|
26 |
+
* @example
|
27 |
+
* // When is the next Tuesday after Mar, 21, 2020?
|
28 |
+
* const result = nextDay(new Date(2020, 2, 21), 2)
|
29 |
+
* //=> Tue Mar 24 2020 00:00:00
|
30 |
+
*/
|
31 |
+
function nextDay(date, day) {
|
32 |
+
let delta = day - (0, _index2.getDay)(date);
|
33 |
+
if (delta <= 0) delta += 7;
|
34 |
+
|
35 |
+
return (0, _index.addDays)(date, delta);
|
36 |
+
}
|
workers1/auto3d/node_modules/date-fns/nextDay.mjs
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { addDays } from "./addDays.mjs";
|
2 |
+
import { getDay } from "./getDay.mjs";
|
3 |
+
|
4 |
+
/**
|
5 |
+
* @name nextDay
|
6 |
+
* @category Weekday Helpers
|
7 |
+
* @summary When is the next day of the week?
|
8 |
+
*
|
9 |
+
* @description
|
10 |
+
* When is the next day of the week? 0-6 the day of the week, 0 represents Sunday.
|
11 |
+
*
|
12 |
+
* @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).
|
13 |
+
*
|
14 |
+
* @param date - The date to check
|
15 |
+
* @param day - day of the week
|
16 |
+
*
|
17 |
+
* @returns The date is the next day of week
|
18 |
+
*
|
19 |
+
* @example
|
20 |
+
* // When is the next Monday after Mar, 20, 2020?
|
21 |
+
* const result = nextDay(new Date(2020, 2, 20), 1)
|
22 |
+
* //=> Mon Mar 23 2020 00:00:00
|
23 |
+
*
|
24 |
+
* @example
|
25 |
+
* // When is the next Tuesday after Mar, 21, 2020?
|
26 |
+
* const result = nextDay(new Date(2020, 2, 21), 2)
|
27 |
+
* //=> Tue Mar 24 2020 00:00:00
|
28 |
+
*/
|
29 |
+
export function nextDay(date, day) {
|
30 |
+
let delta = day - getDay(date);
|
31 |
+
if (delta <= 0) delta += 7;
|
32 |
+
|
33 |
+
return addDays(date, delta);
|
34 |
+
}
|
35 |
+
|
36 |
+
// Fallback for modularized imports:
|
37 |
+
export default nextDay;
|
workers1/auto3d/node_modules/date-fns/nextFriday.d.mts
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* @name nextFriday
|
3 |
+
* @category Weekday Helpers
|
4 |
+
* @summary When is the next Friday?
|
5 |
+
*
|
6 |
+
* @description
|
7 |
+
* When is the next Friday?
|
8 |
+
*
|
9 |
+
* @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).
|
10 |
+
*
|
11 |
+
* @param date - The date to start counting from
|
12 |
+
*
|
13 |
+
* @returns The next Friday
|
14 |
+
*
|
15 |
+
* @example
|
16 |
+
* // When is the next Friday after Mar, 22, 2020?
|
17 |
+
* const result = nextFriday(new Date(2020, 2, 22))
|
18 |
+
* //=> Fri Mar 27 2020 00:00:00
|
19 |
+
*/
|
20 |
+
export declare function nextFriday<DateType extends Date>(
|
21 |
+
date: DateType | number | string,
|
22 |
+
): DateType;
|
workers1/auto3d/node_modules/date-fns/nextFriday.d.ts
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* @name nextFriday
|
3 |
+
* @category Weekday Helpers
|
4 |
+
* @summary When is the next Friday?
|
5 |
+
*
|
6 |
+
* @description
|
7 |
+
* When is the next Friday?
|
8 |
+
*
|
9 |
+
* @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).
|
10 |
+
*
|
11 |
+
* @param date - The date to start counting from
|
12 |
+
*
|
13 |
+
* @returns The next Friday
|
14 |
+
*
|
15 |
+
* @example
|
16 |
+
* // When is the next Friday after Mar, 22, 2020?
|
17 |
+
* const result = nextFriday(new Date(2020, 2, 22))
|
18 |
+
* //=> Fri Mar 27 2020 00:00:00
|
19 |
+
*/
|
20 |
+
export declare function nextFriday<DateType extends Date>(
|
21 |
+
date: DateType | number | string,
|
22 |
+
): DateType;
|
workers1/auto3d/node_modules/date-fns/nextFriday.js
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"use strict";
|
2 |
+
exports.nextFriday = nextFriday;
|
3 |
+
var _index = require("./nextDay.js");
|
4 |
+
|
5 |
+
/**
|
6 |
+
* @name nextFriday
|
7 |
+
* @category Weekday Helpers
|
8 |
+
* @summary When is the next Friday?
|
9 |
+
*
|
10 |
+
* @description
|
11 |
+
* When is the next Friday?
|
12 |
+
*
|
13 |
+
* @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).
|
14 |
+
*
|
15 |
+
* @param date - The date to start counting from
|
16 |
+
*
|
17 |
+
* @returns The next Friday
|
18 |
+
*
|
19 |
+
* @example
|
20 |
+
* // When is the next Friday after Mar, 22, 2020?
|
21 |
+
* const result = nextFriday(new Date(2020, 2, 22))
|
22 |
+
* //=> Fri Mar 27 2020 00:00:00
|
23 |
+
*/
|
24 |
+
function nextFriday(date) {
|
25 |
+
return (0, _index.nextDay)(date, 5);
|
26 |
+
}
|
workers1/auto3d/node_modules/date-fns/nextFriday.mjs
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { nextDay } from "./nextDay.mjs";
|
2 |
+
|
3 |
+
/**
|
4 |
+
* @name nextFriday
|
5 |
+
* @category Weekday Helpers
|
6 |
+
* @summary When is the next Friday?
|
7 |
+
*
|
8 |
+
* @description
|
9 |
+
* When is the next Friday?
|
10 |
+
*
|
11 |
+
* @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).
|
12 |
+
*
|
13 |
+
* @param date - The date to start counting from
|
14 |
+
*
|
15 |
+
* @returns The next Friday
|
16 |
+
*
|
17 |
+
* @example
|
18 |
+
* // When is the next Friday after Mar, 22, 2020?
|
19 |
+
* const result = nextFriday(new Date(2020, 2, 22))
|
20 |
+
* //=> Fri Mar 27 2020 00:00:00
|
21 |
+
*/
|
22 |
+
export function nextFriday(date) {
|
23 |
+
return nextDay(date, 5);
|
24 |
+
}
|
25 |
+
|
26 |
+
// Fallback for modularized imports:
|
27 |
+
export default nextFriday;
|
workers1/auto3d/node_modules/date-fns/nextMonday.d.mts
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* @name nextMonday
|
3 |
+
* @category Weekday Helpers
|
4 |
+
* @summary When is the next Monday?
|
5 |
+
*
|
6 |
+
* @description
|
7 |
+
* When is the next Monday?
|
8 |
+
*
|
9 |
+
* @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).
|
10 |
+
*
|
11 |
+
* @param date - The date to start counting from
|
12 |
+
*
|
13 |
+
* @returns The next Monday
|
14 |
+
*
|
15 |
+
* @example
|
16 |
+
* // When is the next Monday after Mar, 22, 2020?
|
17 |
+
* const result = nextMonday(new Date(2020, 2, 22))
|
18 |
+
* //=> Mon Mar 23 2020 00:00:00
|
19 |
+
*/
|
20 |
+
export declare function nextMonday<DateType extends Date>(
|
21 |
+
date: DateType | number | string,
|
22 |
+
): DateType;
|
workers1/auto3d/node_modules/date-fns/nextMonday.d.ts
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* @name nextMonday
|
3 |
+
* @category Weekday Helpers
|
4 |
+
* @summary When is the next Monday?
|
5 |
+
*
|
6 |
+
* @description
|
7 |
+
* When is the next Monday?
|
8 |
+
*
|
9 |
+
* @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).
|
10 |
+
*
|
11 |
+
* @param date - The date to start counting from
|
12 |
+
*
|
13 |
+
* @returns The next Monday
|
14 |
+
*
|
15 |
+
* @example
|
16 |
+
* // When is the next Monday after Mar, 22, 2020?
|
17 |
+
* const result = nextMonday(new Date(2020, 2, 22))
|
18 |
+
* //=> Mon Mar 23 2020 00:00:00
|
19 |
+
*/
|
20 |
+
export declare function nextMonday<DateType extends Date>(
|
21 |
+
date: DateType | number | string,
|
22 |
+
): DateType;
|
workers1/auto3d/node_modules/date-fns/nextMonday.js
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"use strict";
|
2 |
+
exports.nextMonday = nextMonday;
|
3 |
+
var _index = require("./nextDay.js");
|
4 |
+
|
5 |
+
/**
|
6 |
+
* @name nextMonday
|
7 |
+
* @category Weekday Helpers
|
8 |
+
* @summary When is the next Monday?
|
9 |
+
*
|
10 |
+
* @description
|
11 |
+
* When is the next Monday?
|
12 |
+
*
|
13 |
+
* @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).
|
14 |
+
*
|
15 |
+
* @param date - The date to start counting from
|
16 |
+
*
|
17 |
+
* @returns The next Monday
|
18 |
+
*
|
19 |
+
* @example
|
20 |
+
* // When is the next Monday after Mar, 22, 2020?
|
21 |
+
* const result = nextMonday(new Date(2020, 2, 22))
|
22 |
+
* //=> Mon Mar 23 2020 00:00:00
|
23 |
+
*/
|
24 |
+
function nextMonday(date) {
|
25 |
+
return (0, _index.nextDay)(date, 1);
|
26 |
+
}
|
workers1/auto3d/node_modules/date-fns/nextMonday.mjs
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { nextDay } from "./nextDay.mjs";
|
2 |
+
|
3 |
+
/**
|
4 |
+
* @name nextMonday
|
5 |
+
* @category Weekday Helpers
|
6 |
+
* @summary When is the next Monday?
|
7 |
+
*
|
8 |
+
* @description
|
9 |
+
* When is the next Monday?
|
10 |
+
*
|
11 |
+
* @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).
|
12 |
+
*
|
13 |
+
* @param date - The date to start counting from
|
14 |
+
*
|
15 |
+
* @returns The next Monday
|
16 |
+
*
|
17 |
+
* @example
|
18 |
+
* // When is the next Monday after Mar, 22, 2020?
|
19 |
+
* const result = nextMonday(new Date(2020, 2, 22))
|
20 |
+
* //=> Mon Mar 23 2020 00:00:00
|
21 |
+
*/
|
22 |
+
export function nextMonday(date) {
|
23 |
+
return nextDay(date, 1);
|
24 |
+
}
|
25 |
+
|
26 |
+
// Fallback for modularized imports:
|
27 |
+
export default nextMonday;
|
workers1/auto3d/node_modules/date-fns/nextSaturday.d.mts
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* @name nextSaturday
|
3 |
+
* @category Weekday Helpers
|
4 |
+
* @summary When is the next Saturday?
|
5 |
+
*
|
6 |
+
* @description
|
7 |
+
* When is the next Saturday?
|
8 |
+
*
|
9 |
+
* @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).
|
10 |
+
*
|
11 |
+
* @param date - The date to start counting from
|
12 |
+
*
|
13 |
+
* @returns The next Saturday
|
14 |
+
*
|
15 |
+
* @example
|
16 |
+
* // When is the next Saturday after Mar, 22, 2020?
|
17 |
+
* const result = nextSaturday(new Date(2020, 2, 22))
|
18 |
+
* //=> Sat Mar 28 2020 00:00:00
|
19 |
+
*/
|
20 |
+
export declare function nextSaturday<DateType extends Date>(
|
21 |
+
date: DateType | number | string,
|
22 |
+
): DateType;
|
workers1/auto3d/node_modules/date-fns/nextSaturday.d.ts
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* @name nextSaturday
|
3 |
+
* @category Weekday Helpers
|
4 |
+
* @summary When is the next Saturday?
|
5 |
+
*
|
6 |
+
* @description
|
7 |
+
* When is the next Saturday?
|
8 |
+
*
|
9 |
+
* @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).
|
10 |
+
*
|
11 |
+
* @param date - The date to start counting from
|
12 |
+
*
|
13 |
+
* @returns The next Saturday
|
14 |
+
*
|
15 |
+
* @example
|
16 |
+
* // When is the next Saturday after Mar, 22, 2020?
|
17 |
+
* const result = nextSaturday(new Date(2020, 2, 22))
|
18 |
+
* //=> Sat Mar 28 2020 00:00:00
|
19 |
+
*/
|
20 |
+
export declare function nextSaturday<DateType extends Date>(
|
21 |
+
date: DateType | number | string,
|
22 |
+
): DateType;
|
workers1/auto3d/node_modules/date-fns/nextSaturday.js
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"use strict";
|
2 |
+
exports.nextSaturday = nextSaturday;
|
3 |
+
var _index = require("./nextDay.js");
|
4 |
+
|
5 |
+
/**
|
6 |
+
* @name nextSaturday
|
7 |
+
* @category Weekday Helpers
|
8 |
+
* @summary When is the next Saturday?
|
9 |
+
*
|
10 |
+
* @description
|
11 |
+
* When is the next Saturday?
|
12 |
+
*
|
13 |
+
* @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).
|
14 |
+
*
|
15 |
+
* @param date - The date to start counting from
|
16 |
+
*
|
17 |
+
* @returns The next Saturday
|
18 |
+
*
|
19 |
+
* @example
|
20 |
+
* // When is the next Saturday after Mar, 22, 2020?
|
21 |
+
* const result = nextSaturday(new Date(2020, 2, 22))
|
22 |
+
* //=> Sat Mar 28 2020 00:00:00
|
23 |
+
*/
|
24 |
+
function nextSaturday(date) {
|
25 |
+
return (0, _index.nextDay)(date, 6);
|
26 |
+
}
|
workers1/auto3d/node_modules/date-fns/nextSaturday.mjs
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { nextDay } from "./nextDay.mjs";
|
2 |
+
|
3 |
+
/**
|
4 |
+
* @name nextSaturday
|
5 |
+
* @category Weekday Helpers
|
6 |
+
* @summary When is the next Saturday?
|
7 |
+
*
|
8 |
+
* @description
|
9 |
+
* When is the next Saturday?
|
10 |
+
*
|
11 |
+
* @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).
|
12 |
+
*
|
13 |
+
* @param date - The date to start counting from
|
14 |
+
*
|
15 |
+
* @returns The next Saturday
|
16 |
+
*
|
17 |
+
* @example
|
18 |
+
* // When is the next Saturday after Mar, 22, 2020?
|
19 |
+
* const result = nextSaturday(new Date(2020, 2, 22))
|
20 |
+
* //=> Sat Mar 28 2020 00:00:00
|
21 |
+
*/
|
22 |
+
export function nextSaturday(date) {
|
23 |
+
return nextDay(date, 6);
|
24 |
+
}
|
25 |
+
|
26 |
+
// Fallback for modularized imports:
|
27 |
+
export default nextSaturday;
|
workers1/auto3d/node_modules/date-fns/nextSunday.d.mts
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* @name nextSunday
|
3 |
+
* @category Weekday Helpers
|
4 |
+
* @summary When is the next Sunday?
|
5 |
+
*
|
6 |
+
* @description
|
7 |
+
* When is the next Sunday?
|
8 |
+
*
|
9 |
+
* @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).
|
10 |
+
*
|
11 |
+
* @param date - The date to start counting from
|
12 |
+
*
|
13 |
+
* @returns The next Sunday
|
14 |
+
*
|
15 |
+
* @example
|
16 |
+
* // When is the next Sunday after Mar, 22, 2020?
|
17 |
+
* const result = nextSunday(new Date(2020, 2, 22))
|
18 |
+
* //=> Sun Mar 29 2020 00:00:00
|
19 |
+
*/
|
20 |
+
export declare function nextSunday<DateType extends Date>(
|
21 |
+
date: DateType | number | string,
|
22 |
+
): DateType;
|
workers1/auto3d/node_modules/date-fns/nextSunday.d.ts
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* @name nextSunday
|
3 |
+
* @category Weekday Helpers
|
4 |
+
* @summary When is the next Sunday?
|
5 |
+
*
|
6 |
+
* @description
|
7 |
+
* When is the next Sunday?
|
8 |
+
*
|
9 |
+
* @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).
|
10 |
+
*
|
11 |
+
* @param date - The date to start counting from
|
12 |
+
*
|
13 |
+
* @returns The next Sunday
|
14 |
+
*
|
15 |
+
* @example
|
16 |
+
* // When is the next Sunday after Mar, 22, 2020?
|
17 |
+
* const result = nextSunday(new Date(2020, 2, 22))
|
18 |
+
* //=> Sun Mar 29 2020 00:00:00
|
19 |
+
*/
|
20 |
+
export declare function nextSunday<DateType extends Date>(
|
21 |
+
date: DateType | number | string,
|
22 |
+
): DateType;
|
workers1/auto3d/node_modules/date-fns/nextSunday.js
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"use strict";
|
2 |
+
exports.nextSunday = nextSunday;
|
3 |
+
var _index = require("./nextDay.js");
|
4 |
+
|
5 |
+
/**
|
6 |
+
* @name nextSunday
|
7 |
+
* @category Weekday Helpers
|
8 |
+
* @summary When is the next Sunday?
|
9 |
+
*
|
10 |
+
* @description
|
11 |
+
* When is the next Sunday?
|
12 |
+
*
|
13 |
+
* @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).
|
14 |
+
*
|
15 |
+
* @param date - The date to start counting from
|
16 |
+
*
|
17 |
+
* @returns The next Sunday
|
18 |
+
*
|
19 |
+
* @example
|
20 |
+
* // When is the next Sunday after Mar, 22, 2020?
|
21 |
+
* const result = nextSunday(new Date(2020, 2, 22))
|
22 |
+
* //=> Sun Mar 29 2020 00:00:00
|
23 |
+
*/
|
24 |
+
function nextSunday(date) {
|
25 |
+
return (0, _index.nextDay)(date, 0);
|
26 |
+
}
|
workers1/auto3d/node_modules/date-fns/nextSunday.mjs
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { nextDay } from "./nextDay.mjs";
|
2 |
+
|
3 |
+
/**
|
4 |
+
* @name nextSunday
|
5 |
+
* @category Weekday Helpers
|
6 |
+
* @summary When is the next Sunday?
|
7 |
+
*
|
8 |
+
* @description
|
9 |
+
* When is the next Sunday?
|
10 |
+
*
|
11 |
+
* @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).
|
12 |
+
*
|
13 |
+
* @param date - The date to start counting from
|
14 |
+
*
|
15 |
+
* @returns The next Sunday
|
16 |
+
*
|
17 |
+
* @example
|
18 |
+
* // When is the next Sunday after Mar, 22, 2020?
|
19 |
+
* const result = nextSunday(new Date(2020, 2, 22))
|
20 |
+
* //=> Sun Mar 29 2020 00:00:00
|
21 |
+
*/
|
22 |
+
export function nextSunday(date) {
|
23 |
+
return nextDay(date, 0);
|
24 |
+
}
|
25 |
+
|
26 |
+
// Fallback for modularized imports:
|
27 |
+
export default nextSunday;
|
workers1/auto3d/node_modules/date-fns/nextThursday.d.mts
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* @name nextThursday
|
3 |
+
* @category Weekday Helpers
|
4 |
+
* @summary When is the next Thursday?
|
5 |
+
*
|
6 |
+
* @description
|
7 |
+
* When is the next Thursday?
|
8 |
+
*
|
9 |
+
* @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).
|
10 |
+
*
|
11 |
+
* @param date - The date to start counting from
|
12 |
+
*
|
13 |
+
* @returns The next Thursday
|
14 |
+
*
|
15 |
+
* @example
|
16 |
+
* // When is the next Thursday after Mar, 22, 2020?
|
17 |
+
* const result = nextThursday(new Date(2020, 2, 22))
|
18 |
+
* //=> Thur Mar 26 2020 00:00:00
|
19 |
+
*/
|
20 |
+
export declare function nextThursday<DateType extends Date>(
|
21 |
+
date: DateType | number | string,
|
22 |
+
): DateType;
|