MinsoftK

8

Showing 1000 changed files with 0 additions and 2761 deletions

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

1 -{
2 - "sideEffects": false,
3 - "module": "../esm/setDate/index.js",
4 - "typings": "../typings.d.ts"
5 -}
...\ No newline at end of file ...\ No newline at end of file
1 -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
2 -
3 -import { setDay } from 'date-fns'
4 -export default setDay
1 -"use strict";
2 -
3 -Object.defineProperty(exports, "__esModule", {
4 - value: true
5 -});
6 -exports.default = setDay;
7 -
8 -var _index = _interopRequireDefault(require("../addDays/index.js"));
9 -
10 -var _index2 = _interopRequireDefault(require("../toDate/index.js"));
11 -
12 -var _index3 = _interopRequireDefault(require("../_lib/toInteger/index.js"));
13 -
14 -var _index4 = _interopRequireDefault(require("../_lib/requiredArgs/index.js"));
15 -
16 -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17 -
18 -/**
19 - * @name setDay
20 - * @category Weekday Helpers
21 - * @summary Set the day of the week to the given date.
22 - *
23 - * @description
24 - * Set the day of the week to the given date.
25 - *
26 - * ### v2.0.0 breaking changes:
27 - *
28 - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
29 - *
30 - * @param {Date|Number} date - the date to be changed
31 - * @param {Number} day - the day of the week of the new date
32 - * @param {Object} [options] - an object with options.
33 - * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}
34 - * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)
35 - * @returns {Date} the new date with the day of the week set
36 - * @throws {TypeError} 2 arguments required
37 - * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
38 - *
39 - * @example
40 - * // Set week day to Sunday, with the default weekStartsOn of Sunday:
41 - * var result = setDay(new Date(2014, 8, 1), 0)
42 - * //=> Sun Aug 31 2014 00:00:00
43 - *
44 - * @example
45 - * // Set week day to Sunday, with a weekStartsOn of Monday:
46 - * var result = setDay(new Date(2014, 8, 1), 0, { weekStartsOn: 1 })
47 - * //=> Sun Sep 07 2014 00:00:00
48 - */
49 -function setDay(dirtyDate, dirtyDay, dirtyOptions) {
50 - (0, _index4.default)(2, arguments);
51 - var options = dirtyOptions || {};
52 - var locale = options.locale;
53 - var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn;
54 - var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : (0, _index3.default)(localeWeekStartsOn);
55 - var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : (0, _index3.default)(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
56 -
57 - if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
58 - throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
59 - }
60 -
61 - var date = (0, _index2.default)(dirtyDate, options);
62 - var day = (0, _index3.default)(dirtyDay);
63 - var currentDay = date.getDay();
64 - var remainder = day % 7;
65 - var dayIndex = (remainder + 7) % 7;
66 - var delta = 7 - weekStartsOn;
67 - var diff = day < 0 || day > 6 ? day - (currentDay + delta) % 7 : (dayIndex + delta) % 7 - (currentDay + delta) % 7;
68 - return (0, _index.default)(date, diff, options);
69 -}
70 -
71 -module.exports = exports.default;
...\ No newline at end of file ...\ No newline at end of file
1 -// @flow
2 -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
3 -
4 -export type Interval = {
5 - start: Date | number,
6 - end: Date | number,
7 -}
8 -
9 -export type Locale = {
10 - code?: string,
11 - formatDistance?: (...args: Array<any>) => any,
12 - formatRelative?: (...args: Array<any>) => any,
13 - localize?: {
14 - ordinalNumber: (...args: Array<any>) => any,
15 - era: (...args: Array<any>) => any,
16 - quarter: (...args: Array<any>) => any,
17 - month: (...args: Array<any>) => any,
18 - day: (...args: Array<any>) => any,
19 - dayPeriod: (...args: Array<any>) => any,
20 - },
21 - formatLong?: {
22 - date: (...args: Array<any>) => any,
23 - time: (...args: Array<any>) => any,
24 - dateTime: (...args: Array<any>) => any,
25 - },
26 - match?: {
27 - ordinalNumber: (...args: Array<any>) => any,
28 - era: (...args: Array<any>) => any,
29 - quarter: (...args: Array<any>) => any,
30 - month: (...args: Array<any>) => any,
31 - day: (...args: Array<any>) => any,
32 - dayPeriod: (...args: Array<any>) => any,
33 - },
34 - options?: {
35 - weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6,
36 - firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7,
37 - },
38 -}
39 -
40 -export type Duration = {
41 - years?: number,
42 - months?: number,
43 - weeks?: number,
44 - days?: number,
45 - hours?: number,
46 - minutes?: number,
47 - seconds?: number,
48 -}
49 -
50 -declare module.exports: (
51 - date: Date | number,
52 - day: number,
53 - options?: {
54 - locale?: Locale,
55 - weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6,
56 - }
57 -) => Date
1 -{
2 - "sideEffects": false,
3 - "module": "../esm/setDay/index.js",
4 - "typings": "../typings.d.ts"
5 -}
...\ No newline at end of file ...\ No newline at end of file
1 -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
2 -
3 -import { setDayOfYear } from 'date-fns'
4 -export default setDayOfYear
1 -"use strict";
2 -
3 -Object.defineProperty(exports, "__esModule", {
4 - value: true
5 -});
6 -exports.default = setDayOfYear;
7 -
8 -var _index = _interopRequireDefault(require("../_lib/toInteger/index.js"));
9 -
10 -var _index2 = _interopRequireDefault(require("../toDate/index.js"));
11 -
12 -var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js"));
13 -
14 -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15 -
16 -/**
17 - * @name setDayOfYear
18 - * @category Day Helpers
19 - * @summary Set the day of the year to the given date.
20 - *
21 - * @description
22 - * Set the day of the year to the given date.
23 - *
24 - * ### v2.0.0 breaking changes:
25 - *
26 - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
27 - *
28 - * @param {Date|Number} date - the date to be changed
29 - * @param {Number} dayOfYear - the day of the year of the new date
30 - * @returns {Date} the new date with the day of the year set
31 - * @throws {TypeError} 2 arguments required
32 - *
33 - * @example
34 - * // Set the 2nd day of the year to 2 July 2014:
35 - * var result = setDayOfYear(new Date(2014, 6, 2), 2)
36 - * //=> Thu Jan 02 2014 00:00:00
37 - */
38 -function setDayOfYear(dirtyDate, dirtyDayOfYear) {
39 - (0, _index3.default)(2, arguments);
40 - var date = (0, _index2.default)(dirtyDate);
41 - var dayOfYear = (0, _index.default)(dirtyDayOfYear);
42 - date.setMonth(0);
43 - date.setDate(dayOfYear);
44 - return date;
45 -}
46 -
47 -module.exports = exports.default;
...\ No newline at end of file ...\ No newline at end of file
1 -// @flow
2 -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
3 -
4 -export type Interval = {
5 - start: Date | number,
6 - end: Date | number,
7 -}
8 -
9 -export type Locale = {
10 - code?: string,
11 - formatDistance?: (...args: Array<any>) => any,
12 - formatRelative?: (...args: Array<any>) => any,
13 - localize?: {
14 - ordinalNumber: (...args: Array<any>) => any,
15 - era: (...args: Array<any>) => any,
16 - quarter: (...args: Array<any>) => any,
17 - month: (...args: Array<any>) => any,
18 - day: (...args: Array<any>) => any,
19 - dayPeriod: (...args: Array<any>) => any,
20 - },
21 - formatLong?: {
22 - date: (...args: Array<any>) => any,
23 - time: (...args: Array<any>) => any,
24 - dateTime: (...args: Array<any>) => any,
25 - },
26 - match?: {
27 - ordinalNumber: (...args: Array<any>) => any,
28 - era: (...args: Array<any>) => any,
29 - quarter: (...args: Array<any>) => any,
30 - month: (...args: Array<any>) => any,
31 - day: (...args: Array<any>) => any,
32 - dayPeriod: (...args: Array<any>) => any,
33 - },
34 - options?: {
35 - weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6,
36 - firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7,
37 - },
38 -}
39 -
40 -export type Duration = {
41 - years?: number,
42 - months?: number,
43 - weeks?: number,
44 - days?: number,
45 - hours?: number,
46 - minutes?: number,
47 - seconds?: number,
48 -}
49 -
50 -declare module.exports: (date: Date | number, dayOfYear: number) => Date
1 -{
2 - "sideEffects": false,
3 - "module": "../esm/setDayOfYear/index.js",
4 - "typings": "../typings.d.ts"
5 -}
...\ No newline at end of file ...\ No newline at end of file
1 -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
2 -
3 -import { setHours } from 'date-fns'
4 -export default setHours
1 -"use strict";
2 -
3 -Object.defineProperty(exports, "__esModule", {
4 - value: true
5 -});
6 -exports.default = setHours;
7 -
8 -var _index = _interopRequireDefault(require("../_lib/toInteger/index.js"));
9 -
10 -var _index2 = _interopRequireDefault(require("../toDate/index.js"));
11 -
12 -var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js"));
13 -
14 -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15 -
16 -/**
17 - * @name setHours
18 - * @category Hour Helpers
19 - * @summary Set the hours to the given date.
20 - *
21 - * @description
22 - * Set the hours to the given date.
23 - *
24 - * ### v2.0.0 breaking changes:
25 - *
26 - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
27 - *
28 - * @param {Date|Number} date - the date to be changed
29 - * @param {Number} hours - the hours of the new date
30 - * @returns {Date} the new date with the hours set
31 - * @throws {TypeError} 2 arguments required
32 - *
33 - * @example
34 - * // Set 4 hours to 1 September 2014 11:30:00:
35 - * var result = setHours(new Date(2014, 8, 1, 11, 30), 4)
36 - * //=> Mon Sep 01 2014 04:30:00
37 - */
38 -function setHours(dirtyDate, dirtyHours) {
39 - (0, _index3.default)(2, arguments);
40 - var date = (0, _index2.default)(dirtyDate);
41 - var hours = (0, _index.default)(dirtyHours);
42 - date.setHours(hours);
43 - return date;
44 -}
45 -
46 -module.exports = exports.default;
...\ No newline at end of file ...\ No newline at end of file
1 -// @flow
2 -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
3 -
4 -export type Interval = {
5 - start: Date | number,
6 - end: Date | number,
7 -}
8 -
9 -export type Locale = {
10 - code?: string,
11 - formatDistance?: (...args: Array<any>) => any,
12 - formatRelative?: (...args: Array<any>) => any,
13 - localize?: {
14 - ordinalNumber: (...args: Array<any>) => any,
15 - era: (...args: Array<any>) => any,
16 - quarter: (...args: Array<any>) => any,
17 - month: (...args: Array<any>) => any,
18 - day: (...args: Array<any>) => any,
19 - dayPeriod: (...args: Array<any>) => any,
20 - },
21 - formatLong?: {
22 - date: (...args: Array<any>) => any,
23 - time: (...args: Array<any>) => any,
24 - dateTime: (...args: Array<any>) => any,
25 - },
26 - match?: {
27 - ordinalNumber: (...args: Array<any>) => any,
28 - era: (...args: Array<any>) => any,
29 - quarter: (...args: Array<any>) => any,
30 - month: (...args: Array<any>) => any,
31 - day: (...args: Array<any>) => any,
32 - dayPeriod: (...args: Array<any>) => any,
33 - },
34 - options?: {
35 - weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6,
36 - firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7,
37 - },
38 -}
39 -
40 -export type Duration = {
41 - years?: number,
42 - months?: number,
43 - weeks?: number,
44 - days?: number,
45 - hours?: number,
46 - minutes?: number,
47 - seconds?: number,
48 -}
49 -
50 -declare module.exports: (date: Date | number, hours: number) => Date
1 -{
2 - "sideEffects": false,
3 - "module": "../esm/setHours/index.js",
4 - "typings": "../typings.d.ts"
5 -}
...\ No newline at end of file ...\ No newline at end of file
1 -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
2 -
3 -import { setISODay } from 'date-fns'
4 -export default setISODay
1 -"use strict";
2 -
3 -Object.defineProperty(exports, "__esModule", {
4 - value: true
5 -});
6 -exports.default = setISODay;
7 -
8 -var _index = _interopRequireDefault(require("../_lib/toInteger/index.js"));
9 -
10 -var _index2 = _interopRequireDefault(require("../toDate/index.js"));
11 -
12 -var _index3 = _interopRequireDefault(require("../addDays/index.js"));
13 -
14 -var _index4 = _interopRequireDefault(require("../getISODay/index.js"));
15 -
16 -var _index5 = _interopRequireDefault(require("../_lib/requiredArgs/index.js"));
17 -
18 -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19 -
20 -/**
21 - * @name setISODay
22 - * @category Weekday Helpers
23 - * @summary Set the day of the ISO week to the given date.
24 - *
25 - * @description
26 - * Set the day of the ISO week to the given date.
27 - * ISO week starts with Monday.
28 - * 7 is the index of Sunday, 1 is the index of Monday etc.
29 - *
30 - * ### v2.0.0 breaking changes:
31 - *
32 - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
33 - *
34 - * @param {Date|Number} date - the date to be changed
35 - * @param {Number} day - the day of the ISO week of the new date
36 - * @returns {Date} the new date with the day of the ISO week set
37 - * @throws {TypeError} 2 arguments required
38 - *
39 - * @example
40 - * // Set Sunday to 1 September 2014:
41 - * var result = setISODay(new Date(2014, 8, 1), 7)
42 - * //=> Sun Sep 07 2014 00:00:00
43 - */
44 -function setISODay(dirtyDate, dirtyDay) {
45 - (0, _index5.default)(2, arguments);
46 - var date = (0, _index2.default)(dirtyDate);
47 - var day = (0, _index.default)(dirtyDay);
48 - var currentDay = (0, _index4.default)(date);
49 - var diff = day - currentDay;
50 - return (0, _index3.default)(date, diff);
51 -}
52 -
53 -module.exports = exports.default;
...\ No newline at end of file ...\ No newline at end of file
1 -// @flow
2 -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
3 -
4 -export type Interval = {
5 - start: Date | number,
6 - end: Date | number,
7 -}
8 -
9 -export type Locale = {
10 - code?: string,
11 - formatDistance?: (...args: Array<any>) => any,
12 - formatRelative?: (...args: Array<any>) => any,
13 - localize?: {
14 - ordinalNumber: (...args: Array<any>) => any,
15 - era: (...args: Array<any>) => any,
16 - quarter: (...args: Array<any>) => any,
17 - month: (...args: Array<any>) => any,
18 - day: (...args: Array<any>) => any,
19 - dayPeriod: (...args: Array<any>) => any,
20 - },
21 - formatLong?: {
22 - date: (...args: Array<any>) => any,
23 - time: (...args: Array<any>) => any,
24 - dateTime: (...args: Array<any>) => any,
25 - },
26 - match?: {
27 - ordinalNumber: (...args: Array<any>) => any,
28 - era: (...args: Array<any>) => any,
29 - quarter: (...args: Array<any>) => any,
30 - month: (...args: Array<any>) => any,
31 - day: (...args: Array<any>) => any,
32 - dayPeriod: (...args: Array<any>) => any,
33 - },
34 - options?: {
35 - weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6,
36 - firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7,
37 - },
38 -}
39 -
40 -export type Duration = {
41 - years?: number,
42 - months?: number,
43 - weeks?: number,
44 - days?: number,
45 - hours?: number,
46 - minutes?: number,
47 - seconds?: number,
48 -}
49 -
50 -declare module.exports: (date: Date | number, day: number) => Date
1 -{
2 - "sideEffects": false,
3 - "module": "../esm/setISODay/index.js",
4 - "typings": "../typings.d.ts"
5 -}
...\ No newline at end of file ...\ No newline at end of file
1 -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
2 -
3 -import { setISOWeek } from 'date-fns'
4 -export default setISOWeek
1 -"use strict";
2 -
3 -Object.defineProperty(exports, "__esModule", {
4 - value: true
5 -});
6 -exports.default = setISOWeek;
7 -
8 -var _index = _interopRequireDefault(require("../_lib/toInteger/index.js"));
9 -
10 -var _index2 = _interopRequireDefault(require("../toDate/index.js"));
11 -
12 -var _index3 = _interopRequireDefault(require("../getISOWeek/index.js"));
13 -
14 -var _index4 = _interopRequireDefault(require("../_lib/requiredArgs/index.js"));
15 -
16 -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17 -
18 -/**
19 - * @name setISOWeek
20 - * @category ISO Week Helpers
21 - * @summary Set the ISO week to the given date.
22 - *
23 - * @description
24 - * Set the ISO week to the given date, saving the weekday number.
25 - *
26 - * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
27 - *
28 - * ### v2.0.0 breaking changes:
29 - *
30 - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
31 - *
32 - * @param {Date|Number} date - the date to be changed
33 - * @param {Number} isoWeek - the ISO week of the new date
34 - * @returns {Date} the new date with the ISO week set
35 - * @throws {TypeError} 2 arguments required
36 - *
37 - * @example
38 - * // Set the 53rd ISO week to 7 August 2004:
39 - * var result = setISOWeek(new Date(2004, 7, 7), 53)
40 - * //=> Sat Jan 01 2005 00:00:00
41 - */
42 -function setISOWeek(dirtyDate, dirtyISOWeek) {
43 - (0, _index4.default)(2, arguments);
44 - var date = (0, _index2.default)(dirtyDate);
45 - var isoWeek = (0, _index.default)(dirtyISOWeek);
46 - var diff = (0, _index3.default)(date) - isoWeek;
47 - date.setDate(date.getDate() - diff * 7);
48 - return date;
49 -}
50 -
51 -module.exports = exports.default;
...\ No newline at end of file ...\ No newline at end of file
1 -// @flow
2 -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
3 -
4 -export type Interval = {
5 - start: Date | number,
6 - end: Date | number,
7 -}
8 -
9 -export type Locale = {
10 - code?: string,
11 - formatDistance?: (...args: Array<any>) => any,
12 - formatRelative?: (...args: Array<any>) => any,
13 - localize?: {
14 - ordinalNumber: (...args: Array<any>) => any,
15 - era: (...args: Array<any>) => any,
16 - quarter: (...args: Array<any>) => any,
17 - month: (...args: Array<any>) => any,
18 - day: (...args: Array<any>) => any,
19 - dayPeriod: (...args: Array<any>) => any,
20 - },
21 - formatLong?: {
22 - date: (...args: Array<any>) => any,
23 - time: (...args: Array<any>) => any,
24 - dateTime: (...args: Array<any>) => any,
25 - },
26 - match?: {
27 - ordinalNumber: (...args: Array<any>) => any,
28 - era: (...args: Array<any>) => any,
29 - quarter: (...args: Array<any>) => any,
30 - month: (...args: Array<any>) => any,
31 - day: (...args: Array<any>) => any,
32 - dayPeriod: (...args: Array<any>) => any,
33 - },
34 - options?: {
35 - weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6,
36 - firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7,
37 - },
38 -}
39 -
40 -export type Duration = {
41 - years?: number,
42 - months?: number,
43 - weeks?: number,
44 - days?: number,
45 - hours?: number,
46 - minutes?: number,
47 - seconds?: number,
48 -}
49 -
50 -declare module.exports: (date: Date | number, isoWeek: number) => Date
1 -{
2 - "sideEffects": false,
3 - "module": "../esm/setISOWeek/index.js",
4 - "typings": "../typings.d.ts"
5 -}
...\ No newline at end of file ...\ No newline at end of file
1 -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
2 -
3 -import { setISOWeekYear } from 'date-fns'
4 -export default setISOWeekYear
1 -"use strict";
2 -
3 -Object.defineProperty(exports, "__esModule", {
4 - value: true
5 -});
6 -exports.default = setISOWeekYear;
7 -
8 -var _index = _interopRequireDefault(require("../_lib/toInteger/index.js"));
9 -
10 -var _index2 = _interopRequireDefault(require("../toDate/index.js"));
11 -
12 -var _index3 = _interopRequireDefault(require("../startOfISOWeekYear/index.js"));
13 -
14 -var _index4 = _interopRequireDefault(require("../differenceInCalendarDays/index.js"));
15 -
16 -var _index5 = _interopRequireDefault(require("../_lib/requiredArgs/index.js"));
17 -
18 -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19 -
20 -/**
21 - * @name setISOWeekYear
22 - * @category ISO Week-Numbering Year Helpers
23 - * @summary Set the ISO week-numbering year to the given date.
24 - *
25 - * @description
26 - * Set the ISO week-numbering year to the given date,
27 - * saving the week number and the weekday number.
28 - *
29 - * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
30 - *
31 - * ### v2.0.0 breaking changes:
32 - *
33 - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
34 - *
35 - * - The function was renamed from `setISOYear` to `setISOWeekYear`.
36 - * "ISO week year" is short for [ISO week-numbering year](https://en.wikipedia.org/wiki/ISO_week_date).
37 - * This change makes the name consistent with
38 - * locale-dependent week-numbering year helpers, e.g., `setWeekYear`.
39 - *
40 - * @param {Date|Number} date - the date to be changed
41 - * @param {Number} isoWeekYear - the ISO week-numbering year of the new date
42 - * @returns {Date} the new date with the ISO week-numbering year set
43 - * @throws {TypeError} 2 arguments required
44 - *
45 - * @example
46 - * // Set ISO week-numbering year 2007 to 29 December 2008:
47 - * var result = setISOWeekYear(new Date(2008, 11, 29), 2007)
48 - * //=> Mon Jan 01 2007 00:00:00
49 - */
50 -function setISOWeekYear(dirtyDate, dirtyISOWeekYear) {
51 - (0, _index5.default)(2, arguments);
52 - var date = (0, _index2.default)(dirtyDate);
53 - var isoWeekYear = (0, _index.default)(dirtyISOWeekYear);
54 - var diff = (0, _index4.default)(date, (0, _index3.default)(date));
55 - var fourthOfJanuary = new Date(0);
56 - fourthOfJanuary.setFullYear(isoWeekYear, 0, 4);
57 - fourthOfJanuary.setHours(0, 0, 0, 0);
58 - date = (0, _index3.default)(fourthOfJanuary);
59 - date.setDate(date.getDate() + diff);
60 - return date;
61 -}
62 -
63 -module.exports = exports.default;
...\ No newline at end of file ...\ No newline at end of file
1 -// @flow
2 -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
3 -
4 -export type Interval = {
5 - start: Date | number,
6 - end: Date | number,
7 -}
8 -
9 -export type Locale = {
10 - code?: string,
11 - formatDistance?: (...args: Array<any>) => any,
12 - formatRelative?: (...args: Array<any>) => any,
13 - localize?: {
14 - ordinalNumber: (...args: Array<any>) => any,
15 - era: (...args: Array<any>) => any,
16 - quarter: (...args: Array<any>) => any,
17 - month: (...args: Array<any>) => any,
18 - day: (...args: Array<any>) => any,
19 - dayPeriod: (...args: Array<any>) => any,
20 - },
21 - formatLong?: {
22 - date: (...args: Array<any>) => any,
23 - time: (...args: Array<any>) => any,
24 - dateTime: (...args: Array<any>) => any,
25 - },
26 - match?: {
27 - ordinalNumber: (...args: Array<any>) => any,
28 - era: (...args: Array<any>) => any,
29 - quarter: (...args: Array<any>) => any,
30 - month: (...args: Array<any>) => any,
31 - day: (...args: Array<any>) => any,
32 - dayPeriod: (...args: Array<any>) => any,
33 - },
34 - options?: {
35 - weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6,
36 - firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7,
37 - },
38 -}
39 -
40 -export type Duration = {
41 - years?: number,
42 - months?: number,
43 - weeks?: number,
44 - days?: number,
45 - hours?: number,
46 - minutes?: number,
47 - seconds?: number,
48 -}
49 -
50 -declare module.exports: (date: Date | number, isoWeekYear: number) => Date
1 -{
2 - "sideEffects": false,
3 - "module": "../esm/setISOWeekYear/index.js",
4 - "typings": "../typings.d.ts"
5 -}
...\ No newline at end of file ...\ No newline at end of file
1 -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
2 -
3 -import { setMilliseconds } from 'date-fns'
4 -export default setMilliseconds
1 -"use strict";
2 -
3 -Object.defineProperty(exports, "__esModule", {
4 - value: true
5 -});
6 -exports.default = setMilliseconds;
7 -
8 -var _index = _interopRequireDefault(require("../_lib/toInteger/index.js"));
9 -
10 -var _index2 = _interopRequireDefault(require("../toDate/index.js"));
11 -
12 -var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js"));
13 -
14 -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15 -
16 -/**
17 - * @name setMilliseconds
18 - * @category Millisecond Helpers
19 - * @summary Set the milliseconds to the given date.
20 - *
21 - * @description
22 - * Set the milliseconds to the given date.
23 - *
24 - * ### v2.0.0 breaking changes:
25 - *
26 - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
27 - *
28 - * @param {Date|Number} date - the date to be changed
29 - * @param {Number} milliseconds - the milliseconds of the new date
30 - * @returns {Date} the new date with the milliseconds set
31 - * @throws {TypeError} 2 arguments required
32 - *
33 - * @example
34 - * // Set 300 milliseconds to 1 September 2014 11:30:40.500:
35 - * var result = setMilliseconds(new Date(2014, 8, 1, 11, 30, 40, 500), 300)
36 - * //=> Mon Sep 01 2014 11:30:40.300
37 - */
38 -function setMilliseconds(dirtyDate, dirtyMilliseconds) {
39 - (0, _index3.default)(2, arguments);
40 - var date = (0, _index2.default)(dirtyDate);
41 - var milliseconds = (0, _index.default)(dirtyMilliseconds);
42 - date.setMilliseconds(milliseconds);
43 - return date;
44 -}
45 -
46 -module.exports = exports.default;
...\ No newline at end of file ...\ No newline at end of file
1 -// @flow
2 -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
3 -
4 -export type Interval = {
5 - start: Date | number,
6 - end: Date | number,
7 -}
8 -
9 -export type Locale = {
10 - code?: string,
11 - formatDistance?: (...args: Array<any>) => any,
12 - formatRelative?: (...args: Array<any>) => any,
13 - localize?: {
14 - ordinalNumber: (...args: Array<any>) => any,
15 - era: (...args: Array<any>) => any,
16 - quarter: (...args: Array<any>) => any,
17 - month: (...args: Array<any>) => any,
18 - day: (...args: Array<any>) => any,
19 - dayPeriod: (...args: Array<any>) => any,
20 - },
21 - formatLong?: {
22 - date: (...args: Array<any>) => any,
23 - time: (...args: Array<any>) => any,
24 - dateTime: (...args: Array<any>) => any,
25 - },
26 - match?: {
27 - ordinalNumber: (...args: Array<any>) => any,
28 - era: (...args: Array<any>) => any,
29 - quarter: (...args: Array<any>) => any,
30 - month: (...args: Array<any>) => any,
31 - day: (...args: Array<any>) => any,
32 - dayPeriod: (...args: Array<any>) => any,
33 - },
34 - options?: {
35 - weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6,
36 - firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7,
37 - },
38 -}
39 -
40 -export type Duration = {
41 - years?: number,
42 - months?: number,
43 - weeks?: number,
44 - days?: number,
45 - hours?: number,
46 - minutes?: number,
47 - seconds?: number,
48 -}
49 -
50 -declare module.exports: (date: Date | number, milliseconds: number) => Date
1 -{
2 - "sideEffects": false,
3 - "module": "../esm/setMilliseconds/index.js",
4 - "typings": "../typings.d.ts"
5 -}
...\ No newline at end of file ...\ No newline at end of file
1 -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
2 -
3 -import { setMinutes } from 'date-fns'
4 -export default setMinutes
1 -"use strict";
2 -
3 -Object.defineProperty(exports, "__esModule", {
4 - value: true
5 -});
6 -exports.default = setMinutes;
7 -
8 -var _index = _interopRequireDefault(require("../_lib/toInteger/index.js"));
9 -
10 -var _index2 = _interopRequireDefault(require("../toDate/index.js"));
11 -
12 -var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js"));
13 -
14 -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15 -
16 -/**
17 - * @name setMinutes
18 - * @category Minute Helpers
19 - * @summary Set the minutes to the given date.
20 - *
21 - * @description
22 - * Set the minutes to the given date.
23 - *
24 - * ### v2.0.0 breaking changes:
25 - *
26 - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
27 - *
28 - * @param {Date|Number} date - the date to be changed
29 - * @param {Number} minutes - the minutes of the new date
30 - * @returns {Date} the new date with the minutes set
31 - * @throws {TypeError} 2 arguments required
32 - *
33 - * @example
34 - * // Set 45 minutes to 1 September 2014 11:30:40:
35 - * var result = setMinutes(new Date(2014, 8, 1, 11, 30, 40), 45)
36 - * //=> Mon Sep 01 2014 11:45:40
37 - */
38 -function setMinutes(dirtyDate, dirtyMinutes) {
39 - (0, _index3.default)(2, arguments);
40 - var date = (0, _index2.default)(dirtyDate);
41 - var minutes = (0, _index.default)(dirtyMinutes);
42 - date.setMinutes(minutes);
43 - return date;
44 -}
45 -
46 -module.exports = exports.default;
...\ No newline at end of file ...\ No newline at end of file
1 -// @flow
2 -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
3 -
4 -export type Interval = {
5 - start: Date | number,
6 - end: Date | number,
7 -}
8 -
9 -export type Locale = {
10 - code?: string,
11 - formatDistance?: (...args: Array<any>) => any,
12 - formatRelative?: (...args: Array<any>) => any,
13 - localize?: {
14 - ordinalNumber: (...args: Array<any>) => any,
15 - era: (...args: Array<any>) => any,
16 - quarter: (...args: Array<any>) => any,
17 - month: (...args: Array<any>) => any,
18 - day: (...args: Array<any>) => any,
19 - dayPeriod: (...args: Array<any>) => any,
20 - },
21 - formatLong?: {
22 - date: (...args: Array<any>) => any,
23 - time: (...args: Array<any>) => any,
24 - dateTime: (...args: Array<any>) => any,
25 - },
26 - match?: {
27 - ordinalNumber: (...args: Array<any>) => any,
28 - era: (...args: Array<any>) => any,
29 - quarter: (...args: Array<any>) => any,
30 - month: (...args: Array<any>) => any,
31 - day: (...args: Array<any>) => any,
32 - dayPeriod: (...args: Array<any>) => any,
33 - },
34 - options?: {
35 - weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6,
36 - firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7,
37 - },
38 -}
39 -
40 -export type Duration = {
41 - years?: number,
42 - months?: number,
43 - weeks?: number,
44 - days?: number,
45 - hours?: number,
46 - minutes?: number,
47 - seconds?: number,
48 -}
49 -
50 -declare module.exports: (date: Date | number, minutes: number) => Date
1 -{
2 - "sideEffects": false,
3 - "module": "../esm/setMinutes/index.js",
4 - "typings": "../typings.d.ts"
5 -}
...\ No newline at end of file ...\ No newline at end of file
1 -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
2 -
3 -import { setMonth } from 'date-fns'
4 -export default setMonth
1 -"use strict";
2 -
3 -Object.defineProperty(exports, "__esModule", {
4 - value: true
5 -});
6 -exports.default = setMonth;
7 -
8 -var _index = _interopRequireDefault(require("../_lib/toInteger/index.js"));
9 -
10 -var _index2 = _interopRequireDefault(require("../toDate/index.js"));
11 -
12 -var _index3 = _interopRequireDefault(require("../getDaysInMonth/index.js"));
13 -
14 -var _index4 = _interopRequireDefault(require("../_lib/requiredArgs/index.js"));
15 -
16 -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17 -
18 -/**
19 - * @name setMonth
20 - * @category Month Helpers
21 - * @summary Set the month to the given date.
22 - *
23 - * @description
24 - * Set the month to the given date.
25 - *
26 - * ### v2.0.0 breaking changes:
27 - *
28 - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
29 - *
30 - * @param {Date|Number} date - the date to be changed
31 - * @param {Number} month - the month of the new date
32 - * @returns {Date} the new date with the month set
33 - * @throws {TypeError} 2 arguments required
34 - *
35 - * @example
36 - * // Set February to 1 September 2014:
37 - * var result = setMonth(new Date(2014, 8, 1), 1)
38 - * //=> Sat Feb 01 2014 00:00:00
39 - */
40 -function setMonth(dirtyDate, dirtyMonth) {
41 - (0, _index4.default)(2, arguments);
42 - var date = (0, _index2.default)(dirtyDate);
43 - var month = (0, _index.default)(dirtyMonth);
44 - var year = date.getFullYear();
45 - var day = date.getDate();
46 - var dateWithDesiredMonth = new Date(0);
47 - dateWithDesiredMonth.setFullYear(year, month, 15);
48 - dateWithDesiredMonth.setHours(0, 0, 0, 0);
49 - var daysInMonth = (0, _index3.default)(dateWithDesiredMonth); // Set the last day of the new month
50 - // if the original date was the last day of the longer month
51 -
52 - date.setMonth(month, Math.min(day, daysInMonth));
53 - return date;
54 -}
55 -
56 -module.exports = exports.default;
...\ No newline at end of file ...\ No newline at end of file
1 -// @flow
2 -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
3 -
4 -export type Interval = {
5 - start: Date | number,
6 - end: Date | number,
7 -}
8 -
9 -export type Locale = {
10 - code?: string,
11 - formatDistance?: (...args: Array<any>) => any,
12 - formatRelative?: (...args: Array<any>) => any,
13 - localize?: {
14 - ordinalNumber: (...args: Array<any>) => any,
15 - era: (...args: Array<any>) => any,
16 - quarter: (...args: Array<any>) => any,
17 - month: (...args: Array<any>) => any,
18 - day: (...args: Array<any>) => any,
19 - dayPeriod: (...args: Array<any>) => any,
20 - },
21 - formatLong?: {
22 - date: (...args: Array<any>) => any,
23 - time: (...args: Array<any>) => any,
24 - dateTime: (...args: Array<any>) => any,
25 - },
26 - match?: {
27 - ordinalNumber: (...args: Array<any>) => any,
28 - era: (...args: Array<any>) => any,
29 - quarter: (...args: Array<any>) => any,
30 - month: (...args: Array<any>) => any,
31 - day: (...args: Array<any>) => any,
32 - dayPeriod: (...args: Array<any>) => any,
33 - },
34 - options?: {
35 - weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6,
36 - firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7,
37 - },
38 -}
39 -
40 -export type Duration = {
41 - years?: number,
42 - months?: number,
43 - weeks?: number,
44 - days?: number,
45 - hours?: number,
46 - minutes?: number,
47 - seconds?: number,
48 -}
49 -
50 -declare module.exports: (date: Date | number, month: number) => Date
1 -{
2 - "sideEffects": false,
3 - "module": "../esm/setMonth/index.js",
4 - "typings": "../typings.d.ts"
5 -}
...\ No newline at end of file ...\ No newline at end of file
1 -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
2 -
3 -import { setQuarter } from 'date-fns'
4 -export default setQuarter
1 -"use strict";
2 -
3 -Object.defineProperty(exports, "__esModule", {
4 - value: true
5 -});
6 -exports.default = setQuarter;
7 -
8 -var _index = _interopRequireDefault(require("../_lib/toInteger/index.js"));
9 -
10 -var _index2 = _interopRequireDefault(require("../toDate/index.js"));
11 -
12 -var _index3 = _interopRequireDefault(require("../setMonth/index.js"));
13 -
14 -var _index4 = _interopRequireDefault(require("../_lib/requiredArgs/index.js"));
15 -
16 -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17 -
18 -/**
19 - * @name setQuarter
20 - * @category Quarter Helpers
21 - * @summary Set the year quarter to the given date.
22 - *
23 - * @description
24 - * Set the year quarter to the given date.
25 - *
26 - * ### v2.0.0 breaking changes:
27 - *
28 - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
29 - *
30 - * @param {Date|Number} date - the date to be changed
31 - * @param {Number} quarter - the quarter of the new date
32 - * @returns {Date} the new date with the quarter set
33 - * @throws {TypeError} 2 arguments required
34 - *
35 - * @example
36 - * // Set the 2nd quarter to 2 July 2014:
37 - * var result = setQuarter(new Date(2014, 6, 2), 2)
38 - * //=> Wed Apr 02 2014 00:00:00
39 - */
40 -function setQuarter(dirtyDate, dirtyQuarter) {
41 - (0, _index4.default)(2, arguments);
42 - var date = (0, _index2.default)(dirtyDate);
43 - var quarter = (0, _index.default)(dirtyQuarter);
44 - var oldQuarter = Math.floor(date.getMonth() / 3) + 1;
45 - var diff = quarter - oldQuarter;
46 - return (0, _index3.default)(date, date.getMonth() + diff * 3);
47 -}
48 -
49 -module.exports = exports.default;
...\ No newline at end of file ...\ No newline at end of file
1 -// @flow
2 -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
3 -
4 -export type Interval = {
5 - start: Date | number,
6 - end: Date | number,
7 -}
8 -
9 -export type Locale = {
10 - code?: string,
11 - formatDistance?: (...args: Array<any>) => any,
12 - formatRelative?: (...args: Array<any>) => any,
13 - localize?: {
14 - ordinalNumber: (...args: Array<any>) => any,
15 - era: (...args: Array<any>) => any,
16 - quarter: (...args: Array<any>) => any,
17 - month: (...args: Array<any>) => any,
18 - day: (...args: Array<any>) => any,
19 - dayPeriod: (...args: Array<any>) => any,
20 - },
21 - formatLong?: {
22 - date: (...args: Array<any>) => any,
23 - time: (...args: Array<any>) => any,
24 - dateTime: (...args: Array<any>) => any,
25 - },
26 - match?: {
27 - ordinalNumber: (...args: Array<any>) => any,
28 - era: (...args: Array<any>) => any,
29 - quarter: (...args: Array<any>) => any,
30 - month: (...args: Array<any>) => any,
31 - day: (...args: Array<any>) => any,
32 - dayPeriod: (...args: Array<any>) => any,
33 - },
34 - options?: {
35 - weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6,
36 - firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7,
37 - },
38 -}
39 -
40 -export type Duration = {
41 - years?: number,
42 - months?: number,
43 - weeks?: number,
44 - days?: number,
45 - hours?: number,
46 - minutes?: number,
47 - seconds?: number,
48 -}
49 -
50 -declare module.exports: (date: Date | number, quarter: number) => Date
1 -{
2 - "sideEffects": false,
3 - "module": "../esm/setQuarter/index.js",
4 - "typings": "../typings.d.ts"
5 -}
...\ No newline at end of file ...\ No newline at end of file
1 -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
2 -
3 -import { setSeconds } from 'date-fns'
4 -export default setSeconds
1 -"use strict";
2 -
3 -Object.defineProperty(exports, "__esModule", {
4 - value: true
5 -});
6 -exports.default = setSeconds;
7 -
8 -var _index = _interopRequireDefault(require("../_lib/toInteger/index.js"));
9 -
10 -var _index2 = _interopRequireDefault(require("../toDate/index.js"));
11 -
12 -var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js"));
13 -
14 -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15 -
16 -/**
17 - * @name setSeconds
18 - * @category Second Helpers
19 - * @summary Set the seconds to the given date.
20 - *
21 - * @description
22 - * Set the seconds to the given date.
23 - *
24 - * ### v2.0.0 breaking changes:
25 - *
26 - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
27 - *
28 - * @param {Date|Number} date - the date to be changed
29 - * @param {Number} seconds - the seconds of the new date
30 - * @returns {Date} the new date with the seconds set
31 - * @throws {TypeError} 2 arguments required
32 - *
33 - * @example
34 - * // Set 45 seconds to 1 September 2014 11:30:40:
35 - * var result = setSeconds(new Date(2014, 8, 1, 11, 30, 40), 45)
36 - * //=> Mon Sep 01 2014 11:30:45
37 - */
38 -function setSeconds(dirtyDate, dirtySeconds) {
39 - (0, _index3.default)(2, arguments);
40 - var date = (0, _index2.default)(dirtyDate);
41 - var seconds = (0, _index.default)(dirtySeconds);
42 - date.setSeconds(seconds);
43 - return date;
44 -}
45 -
46 -module.exports = exports.default;
...\ No newline at end of file ...\ No newline at end of file
1 -// @flow
2 -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
3 -
4 -export type Interval = {
5 - start: Date | number,
6 - end: Date | number,
7 -}
8 -
9 -export type Locale = {
10 - code?: string,
11 - formatDistance?: (...args: Array<any>) => any,
12 - formatRelative?: (...args: Array<any>) => any,
13 - localize?: {
14 - ordinalNumber: (...args: Array<any>) => any,
15 - era: (...args: Array<any>) => any,
16 - quarter: (...args: Array<any>) => any,
17 - month: (...args: Array<any>) => any,
18 - day: (...args: Array<any>) => any,
19 - dayPeriod: (...args: Array<any>) => any,
20 - },
21 - formatLong?: {
22 - date: (...args: Array<any>) => any,
23 - time: (...args: Array<any>) => any,
24 - dateTime: (...args: Array<any>) => any,
25 - },
26 - match?: {
27 - ordinalNumber: (...args: Array<any>) => any,
28 - era: (...args: Array<any>) => any,
29 - quarter: (...args: Array<any>) => any,
30 - month: (...args: Array<any>) => any,
31 - day: (...args: Array<any>) => any,
32 - dayPeriod: (...args: Array<any>) => any,
33 - },
34 - options?: {
35 - weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6,
36 - firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7,
37 - },
38 -}
39 -
40 -export type Duration = {
41 - years?: number,
42 - months?: number,
43 - weeks?: number,
44 - days?: number,
45 - hours?: number,
46 - minutes?: number,
47 - seconds?: number,
48 -}
49 -
50 -declare module.exports: (date: Date | number, seconds: number) => Date
1 -{
2 - "sideEffects": false,
3 - "module": "../esm/setSeconds/index.js",
4 - "typings": "../typings.d.ts"
5 -}
...\ No newline at end of file ...\ No newline at end of file
1 -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
2 -
3 -import { setWeek } from 'date-fns'
4 -export default setWeek
1 -"use strict";
2 -
3 -Object.defineProperty(exports, "__esModule", {
4 - value: true
5 -});
6 -exports.default = setWeek;
7 -
8 -var _index = _interopRequireDefault(require("../getWeek/index.js"));
9 -
10 -var _index2 = _interopRequireDefault(require("../toDate/index.js"));
11 -
12 -var _index3 = _interopRequireDefault(require("../_lib/toInteger/index.js"));
13 -
14 -var _index4 = _interopRequireDefault(require("../_lib/requiredArgs/index.js"));
15 -
16 -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17 -
18 -/**
19 - * @name setWeek
20 - * @category Week Helpers
21 - * @summary Set the local week to the given date.
22 - *
23 - * @description
24 - * Set the local week to the given date, saving the weekday number.
25 - * The exact calculation depends on the values of
26 - * `options.weekStartsOn` (which is the index of the first day of the week)
27 - * and `options.firstWeekContainsDate` (which is the day of January, which is always in
28 - * the first week of the week-numbering year)
29 - *
30 - * Week numbering: https://en.wikipedia.org/wiki/Week#Week_numbering
31 - *
32 - * ### v2.0.0 breaking changes:
33 - *
34 - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
35 - *
36 - * @param {Date|Number} date - the date to be changed
37 - * @param {Number} week - the week of the new date
38 - * @param {Object} [options] - an object with options.
39 - * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}
40 - * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)
41 - * @param {1|2|3|4|5|6|7} [options.firstWeekContainsDate=1] - the day of January, which is always in the first week of the year
42 - * @returns {Date} the new date with the local week set
43 - * @throws {TypeError} 2 arguments required
44 - * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
45 - * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7
46 - *
47 - * @example
48 - * // Set the 1st week to 2 January 2005 with default options:
49 - * var result = setWeek(new Date(2005, 0, 2), 1)
50 - * //=> Sun Dec 26 2004 00:00:00
51 - *
52 - * @example
53 - * // Set the 1st week to 2 January 2005,
54 - * // if Monday is the first day of the week,
55 - * // and the first week of the year always contains 4 January:
56 - * var result = setWeek(new Date(2005, 0, 2), 1, {
57 - * weekStartsOn: 1,
58 - * firstWeekContainsDate: 4
59 - * })
60 - * //=> Sun Jan 4 2004 00:00:00
61 - */
62 -function setWeek(dirtyDate, dirtyWeek, dirtyOptions) {
63 - (0, _index4.default)(2, arguments);
64 - var date = (0, _index2.default)(dirtyDate);
65 - var week = (0, _index3.default)(dirtyWeek);
66 - var diff = (0, _index.default)(date, dirtyOptions) - week;
67 - date.setDate(date.getDate() - diff * 7);
68 - return date;
69 -}
70 -
71 -module.exports = exports.default;
...\ No newline at end of file ...\ No newline at end of file
1 -// @flow
2 -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
3 -
4 -export type Interval = {
5 - start: Date | number,
6 - end: Date | number,
7 -}
8 -
9 -export type Locale = {
10 - code?: string,
11 - formatDistance?: (...args: Array<any>) => any,
12 - formatRelative?: (...args: Array<any>) => any,
13 - localize?: {
14 - ordinalNumber: (...args: Array<any>) => any,
15 - era: (...args: Array<any>) => any,
16 - quarter: (...args: Array<any>) => any,
17 - month: (...args: Array<any>) => any,
18 - day: (...args: Array<any>) => any,
19 - dayPeriod: (...args: Array<any>) => any,
20 - },
21 - formatLong?: {
22 - date: (...args: Array<any>) => any,
23 - time: (...args: Array<any>) => any,
24 - dateTime: (...args: Array<any>) => any,
25 - },
26 - match?: {
27 - ordinalNumber: (...args: Array<any>) => any,
28 - era: (...args: Array<any>) => any,
29 - quarter: (...args: Array<any>) => any,
30 - month: (...args: Array<any>) => any,
31 - day: (...args: Array<any>) => any,
32 - dayPeriod: (...args: Array<any>) => any,
33 - },
34 - options?: {
35 - weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6,
36 - firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7,
37 - },
38 -}
39 -
40 -export type Duration = {
41 - years?: number,
42 - months?: number,
43 - weeks?: number,
44 - days?: number,
45 - hours?: number,
46 - minutes?: number,
47 - seconds?: number,
48 -}
49 -
50 -declare module.exports: (
51 - date: Date | number,
52 - week: number,
53 - options?: {
54 - locale?: Locale,
55 - weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6,
56 - firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7,
57 - }
58 -) => Date
1 -{
2 - "sideEffects": false,
3 - "module": "../esm/setWeek/index.js",
4 - "typings": "../typings.d.ts"
5 -}
...\ No newline at end of file ...\ No newline at end of file
1 -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
2 -
3 -import { setWeekYear } from 'date-fns'
4 -export default setWeekYear
1 -"use strict";
2 -
3 -Object.defineProperty(exports, "__esModule", {
4 - value: true
5 -});
6 -exports.default = setWeekYear;
7 -
8 -var _index = _interopRequireDefault(require("../differenceInCalendarDays/index.js"));
9 -
10 -var _index2 = _interopRequireDefault(require("../startOfWeekYear/index.js"));
11 -
12 -var _index3 = _interopRequireDefault(require("../toDate/index.js"));
13 -
14 -var _index4 = _interopRequireDefault(require("../_lib/toInteger/index.js"));
15 -
16 -var _index5 = _interopRequireDefault(require("../_lib/requiredArgs/index.js"));
17 -
18 -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19 -
20 -/**
21 - * @name setWeekYear
22 - * @category Week-Numbering Year Helpers
23 - * @summary Set the local week-numbering year to the given date.
24 - *
25 - * @description
26 - * Set the local week-numbering year to the given date,
27 - * saving the week number and the weekday number.
28 - * The exact calculation depends on the values of
29 - * `options.weekStartsOn` (which is the index of the first day of the week)
30 - * and `options.firstWeekContainsDate` (which is the day of January, which is always in
31 - * the first week of the week-numbering year)
32 - *
33 - * Week numbering: https://en.wikipedia.org/wiki/Week#Week_numbering
34 - *
35 - * ### v2.0.0 breaking changes:
36 - *
37 - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
38 - *
39 - * @param {Date|Number} date - the date to be changed
40 - * @param {Number} weekYear - the local week-numbering year of the new date
41 - * @param {Object} [options] - an object with options.
42 - * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}
43 - * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)
44 - * @param {1|2|3|4|5|6|7} [options.firstWeekContainsDate=1] - the day of January, which is always in the first week of the year
45 - * @returns {Date} the new date with the local week-numbering year set
46 - * @throws {TypeError} 2 arguments required
47 - * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
48 - * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7
49 - *
50 - * @example
51 - * // Set the local week-numbering year 2004 to 2 January 2010 with default options:
52 - * var result = setWeekYear(new Date(2010, 0, 2), 2004)
53 - * //=> Sat Jan 03 2004 00:00:00
54 - *
55 - * @example
56 - * // Set the local week-numbering year 2004 to 2 January 2010,
57 - * // if Monday is the first day of week
58 - * // and 4 January is always in the first week of the year:
59 - * var result = setWeekYear(new Date(2010, 0, 2), 2004, {
60 - * weekStartsOn: 1,
61 - * firstWeekContainsDate: 4
62 - * })
63 - * //=> Sat Jan 01 2005 00:00:00
64 - */
65 -function setWeekYear(dirtyDate, dirtyWeekYear, dirtyOptions) {
66 - (0, _index5.default)(2, arguments);
67 - var options = dirtyOptions || {};
68 - var locale = options.locale;
69 - var localeFirstWeekContainsDate = locale && locale.options && locale.options.firstWeekContainsDate;
70 - var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : (0, _index4.default)(localeFirstWeekContainsDate);
71 - var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : (0, _index4.default)(options.firstWeekContainsDate);
72 - var date = (0, _index3.default)(dirtyDate);
73 - var weekYear = (0, _index4.default)(dirtyWeekYear);
74 - var diff = (0, _index.default)(date, (0, _index2.default)(date, dirtyOptions));
75 - var firstWeek = new Date(0);
76 - firstWeek.setFullYear(weekYear, 0, firstWeekContainsDate);
77 - firstWeek.setHours(0, 0, 0, 0);
78 - date = (0, _index2.default)(firstWeek, dirtyOptions);
79 - date.setDate(date.getDate() + diff);
80 - return date;
81 -}
82 -
83 -module.exports = exports.default;
...\ No newline at end of file ...\ No newline at end of file
1 -// @flow
2 -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
3 -
4 -export type Interval = {
5 - start: Date | number,
6 - end: Date | number,
7 -}
8 -
9 -export type Locale = {
10 - code?: string,
11 - formatDistance?: (...args: Array<any>) => any,
12 - formatRelative?: (...args: Array<any>) => any,
13 - localize?: {
14 - ordinalNumber: (...args: Array<any>) => any,
15 - era: (...args: Array<any>) => any,
16 - quarter: (...args: Array<any>) => any,
17 - month: (...args: Array<any>) => any,
18 - day: (...args: Array<any>) => any,
19 - dayPeriod: (...args: Array<any>) => any,
20 - },
21 - formatLong?: {
22 - date: (...args: Array<any>) => any,
23 - time: (...args: Array<any>) => any,
24 - dateTime: (...args: Array<any>) => any,
25 - },
26 - match?: {
27 - ordinalNumber: (...args: Array<any>) => any,
28 - era: (...args: Array<any>) => any,
29 - quarter: (...args: Array<any>) => any,
30 - month: (...args: Array<any>) => any,
31 - day: (...args: Array<any>) => any,
32 - dayPeriod: (...args: Array<any>) => any,
33 - },
34 - options?: {
35 - weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6,
36 - firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7,
37 - },
38 -}
39 -
40 -export type Duration = {
41 - years?: number,
42 - months?: number,
43 - weeks?: number,
44 - days?: number,
45 - hours?: number,
46 - minutes?: number,
47 - seconds?: number,
48 -}
49 -
50 -declare module.exports: (
51 - date: Date | number,
52 - weekYear: number,
53 - options?: {
54 - locale?: Locale,
55 - weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6,
56 - firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7,
57 - }
58 -) => Date
1 -{
2 - "sideEffects": false,
3 - "module": "../esm/setWeekYear/index.js",
4 - "typings": "../typings.d.ts"
5 -}
...\ No newline at end of file ...\ No newline at end of file
1 -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
2 -
3 -import { setYear } from 'date-fns'
4 -export default setYear
1 -"use strict";
2 -
3 -Object.defineProperty(exports, "__esModule", {
4 - value: true
5 -});
6 -exports.default = setYear;
7 -
8 -var _index = _interopRequireDefault(require("../_lib/toInteger/index.js"));
9 -
10 -var _index2 = _interopRequireDefault(require("../toDate/index.js"));
11 -
12 -var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js"));
13 -
14 -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15 -
16 -/**
17 - * @name setYear
18 - * @category Year Helpers
19 - * @summary Set the year to the given date.
20 - *
21 - * @description
22 - * Set the year to the given date.
23 - *
24 - * ### v2.0.0 breaking changes:
25 - *
26 - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
27 - *
28 - * @param {Date|Number} date - the date to be changed
29 - * @param {Number} year - the year of the new date
30 - * @returns {Date} the new date with the year set
31 - * @throws {TypeError} 2 arguments required
32 - *
33 - * @example
34 - * // Set year 2013 to 1 September 2014:
35 - * var result = setYear(new Date(2014, 8, 1), 2013)
36 - * //=> Sun Sep 01 2013 00:00:00
37 - */
38 -function setYear(dirtyDate, dirtyYear) {
39 - (0, _index3.default)(2, arguments);
40 - var date = (0, _index2.default)(dirtyDate);
41 - var year = (0, _index.default)(dirtyYear); // Check if date is Invalid Date because Date.prototype.setFullYear ignores the value of Invalid Date
42 -
43 - if (isNaN(date)) {
44 - return new Date(NaN);
45 - }
46 -
47 - date.setFullYear(year);
48 - return date;
49 -}
50 -
51 -module.exports = exports.default;
...\ No newline at end of file ...\ No newline at end of file
1 -// @flow
2 -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
3 -
4 -export type Interval = {
5 - start: Date | number,
6 - end: Date | number,
7 -}
8 -
9 -export type Locale = {
10 - code?: string,
11 - formatDistance?: (...args: Array<any>) => any,
12 - formatRelative?: (...args: Array<any>) => any,
13 - localize?: {
14 - ordinalNumber: (...args: Array<any>) => any,
15 - era: (...args: Array<any>) => any,
16 - quarter: (...args: Array<any>) => any,
17 - month: (...args: Array<any>) => any,
18 - day: (...args: Array<any>) => any,
19 - dayPeriod: (...args: Array<any>) => any,
20 - },
21 - formatLong?: {
22 - date: (...args: Array<any>) => any,
23 - time: (...args: Array<any>) => any,
24 - dateTime: (...args: Array<any>) => any,
25 - },
26 - match?: {
27 - ordinalNumber: (...args: Array<any>) => any,
28 - era: (...args: Array<any>) => any,
29 - quarter: (...args: Array<any>) => any,
30 - month: (...args: Array<any>) => any,
31 - day: (...args: Array<any>) => any,
32 - dayPeriod: (...args: Array<any>) => any,
33 - },
34 - options?: {
35 - weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6,
36 - firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7,
37 - },
38 -}
39 -
40 -export type Duration = {
41 - years?: number,
42 - months?: number,
43 - weeks?: number,
44 - days?: number,
45 - hours?: number,
46 - minutes?: number,
47 - seconds?: number,
48 -}
49 -
50 -declare module.exports: (date: Date | number, year: number) => Date
1 -{
2 - "sideEffects": false,
3 - "module": "../esm/setYear/index.js",
4 - "typings": "../typings.d.ts"
5 -}
...\ No newline at end of file ...\ No newline at end of file
1 -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
2 -
3 -import { startOfDay } from 'date-fns'
4 -export default startOfDay
1 -"use strict";
2 -
3 -Object.defineProperty(exports, "__esModule", {
4 - value: true
5 -});
6 -exports.default = startOfDay;
7 -
8 -var _index = _interopRequireDefault(require("../toDate/index.js"));
9 -
10 -var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js"));
11 -
12 -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13 -
14 -/**
15 - * @name startOfDay
16 - * @category Day Helpers
17 - * @summary Return the start of a day for the given date.
18 - *
19 - * @description
20 - * Return the start of a day for the given date.
21 - * The result will be in the local timezone.
22 - *
23 - * ### v2.0.0 breaking changes:
24 - *
25 - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
26 - *
27 - * @param {Date|Number} date - the original date
28 - * @returns {Date} the start of a day
29 - * @throws {TypeError} 1 argument required
30 - *
31 - * @example
32 - * // The start of a day for 2 September 2014 11:55:00:
33 - * var result = startOfDay(new Date(2014, 8, 2, 11, 55, 0))
34 - * //=> Tue Sep 02 2014 00:00:00
35 - */
36 -function startOfDay(dirtyDate) {
37 - (0, _index2.default)(1, arguments);
38 - var date = (0, _index.default)(dirtyDate);
39 - date.setHours(0, 0, 0, 0);
40 - return date;
41 -}
42 -
43 -module.exports = exports.default;
...\ No newline at end of file ...\ No newline at end of file
1 -// @flow
2 -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
3 -
4 -export type Interval = {
5 - start: Date | number,
6 - end: Date | number,
7 -}
8 -
9 -export type Locale = {
10 - code?: string,
11 - formatDistance?: (...args: Array<any>) => any,
12 - formatRelative?: (...args: Array<any>) => any,
13 - localize?: {
14 - ordinalNumber: (...args: Array<any>) => any,
15 - era: (...args: Array<any>) => any,
16 - quarter: (...args: Array<any>) => any,
17 - month: (...args: Array<any>) => any,
18 - day: (...args: Array<any>) => any,
19 - dayPeriod: (...args: Array<any>) => any,
20 - },
21 - formatLong?: {
22 - date: (...args: Array<any>) => any,
23 - time: (...args: Array<any>) => any,
24 - dateTime: (...args: Array<any>) => any,
25 - },
26 - match?: {
27 - ordinalNumber: (...args: Array<any>) => any,
28 - era: (...args: Array<any>) => any,
29 - quarter: (...args: Array<any>) => any,
30 - month: (...args: Array<any>) => any,
31 - day: (...args: Array<any>) => any,
32 - dayPeriod: (...args: Array<any>) => any,
33 - },
34 - options?: {
35 - weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6,
36 - firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7,
37 - },
38 -}
39 -
40 -export type Duration = {
41 - years?: number,
42 - months?: number,
43 - weeks?: number,
44 - days?: number,
45 - hours?: number,
46 - minutes?: number,
47 - seconds?: number,
48 -}
49 -
50 -declare module.exports: (date: Date | number) => Date
1 -{
2 - "sideEffects": false,
3 - "module": "../esm/startOfDay/index.js",
4 - "typings": "../typings.d.ts"
5 -}
...\ No newline at end of file ...\ No newline at end of file
1 -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
2 -
3 -import { startOfDecade } from 'date-fns'
4 -export default startOfDecade
1 -"use strict";
2 -
3 -Object.defineProperty(exports, "__esModule", {
4 - value: true
5 -});
6 -exports.default = startOfDecade;
7 -
8 -var _index = _interopRequireDefault(require("../toDate/index.js"));
9 -
10 -var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js"));
11 -
12 -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13 -
14 -/**
15 - * @name startOfDecade
16 - * @category Decade Helpers
17 - * @summary Return the start of a decade for the given date.
18 - *
19 - * @description
20 - * Return the start of a decade for the given date.
21 - *
22 - * ### v2.0.0 breaking changes:
23 - *
24 - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
25 - *
26 - * @param {Date|Number} date - the original date
27 - * @returns {Date} the start of a decade
28 - * @throws {TypeError} 1 argument required
29 - *
30 - * @example
31 - * // The start of a decade for 21 October 2015 00:00:00:
32 - * var result = startOfDecade(new Date(2015, 9, 21, 00, 00, 00))
33 - * //=> Jan 01 2010 00:00:00
34 - */
35 -function startOfDecade(dirtyDate) {
36 - (0, _index2.default)(1, arguments);
37 - var date = (0, _index.default)(dirtyDate);
38 - var year = date.getFullYear();
39 - var decade = Math.floor(year / 10) * 10;
40 - date.setFullYear(decade, 0, 1);
41 - date.setHours(0, 0, 0, 0);
42 - return date;
43 -}
44 -
45 -module.exports = exports.default;
...\ No newline at end of file ...\ No newline at end of file
1 -// @flow
2 -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
3 -
4 -export type Interval = {
5 - start: Date | number,
6 - end: Date | number,
7 -}
8 -
9 -export type Locale = {
10 - code?: string,
11 - formatDistance?: (...args: Array<any>) => any,
12 - formatRelative?: (...args: Array<any>) => any,
13 - localize?: {
14 - ordinalNumber: (...args: Array<any>) => any,
15 - era: (...args: Array<any>) => any,
16 - quarter: (...args: Array<any>) => any,
17 - month: (...args: Array<any>) => any,
18 - day: (...args: Array<any>) => any,
19 - dayPeriod: (...args: Array<any>) => any,
20 - },
21 - formatLong?: {
22 - date: (...args: Array<any>) => any,
23 - time: (...args: Array<any>) => any,
24 - dateTime: (...args: Array<any>) => any,
25 - },
26 - match?: {
27 - ordinalNumber: (...args: Array<any>) => any,
28 - era: (...args: Array<any>) => any,
29 - quarter: (...args: Array<any>) => any,
30 - month: (...args: Array<any>) => any,
31 - day: (...args: Array<any>) => any,
32 - dayPeriod: (...args: Array<any>) => any,
33 - },
34 - options?: {
35 - weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6,
36 - firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7,
37 - },
38 -}
39 -
40 -export type Duration = {
41 - years?: number,
42 - months?: number,
43 - weeks?: number,
44 - days?: number,
45 - hours?: number,
46 - minutes?: number,
47 - seconds?: number,
48 -}
49 -
50 -declare module.exports: (date: Date | number) => Date
1 -{
2 - "sideEffects": false,
3 - "module": "../esm/startOfDecade/index.js",
4 - "typings": "../typings.d.ts"
5 -}
...\ No newline at end of file ...\ No newline at end of file
1 -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
2 -
3 -import { startOfHour } from 'date-fns'
4 -export default startOfHour
1 -"use strict";
2 -
3 -Object.defineProperty(exports, "__esModule", {
4 - value: true
5 -});
6 -exports.default = startOfHour;
7 -
8 -var _index = _interopRequireDefault(require("../toDate/index.js"));
9 -
10 -var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js"));
11 -
12 -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13 -
14 -/**
15 - * @name startOfHour
16 - * @category Hour Helpers
17 - * @summary Return the start of an hour for the given date.
18 - *
19 - * @description
20 - * Return the start of an hour for the given date.
21 - * The result will be in the local timezone.
22 - *
23 - * ### v2.0.0 breaking changes:
24 - *
25 - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
26 - *
27 - * @param {Date|Number} date - the original date
28 - * @returns {Date} the start of an hour
29 - * @throws {TypeError} 1 argument required
30 - *
31 - * @example
32 - * // The start of an hour for 2 September 2014 11:55:00:
33 - * var result = startOfHour(new Date(2014, 8, 2, 11, 55))
34 - * //=> Tue Sep 02 2014 11:00:00
35 - */
36 -function startOfHour(dirtyDate) {
37 - (0, _index2.default)(1, arguments);
38 - var date = (0, _index.default)(dirtyDate);
39 - date.setMinutes(0, 0, 0);
40 - return date;
41 -}
42 -
43 -module.exports = exports.default;
...\ No newline at end of file ...\ No newline at end of file
1 -// @flow
2 -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
3 -
4 -export type Interval = {
5 - start: Date | number,
6 - end: Date | number,
7 -}
8 -
9 -export type Locale = {
10 - code?: string,
11 - formatDistance?: (...args: Array<any>) => any,
12 - formatRelative?: (...args: Array<any>) => any,
13 - localize?: {
14 - ordinalNumber: (...args: Array<any>) => any,
15 - era: (...args: Array<any>) => any,
16 - quarter: (...args: Array<any>) => any,
17 - month: (...args: Array<any>) => any,
18 - day: (...args: Array<any>) => any,
19 - dayPeriod: (...args: Array<any>) => any,
20 - },
21 - formatLong?: {
22 - date: (...args: Array<any>) => any,
23 - time: (...args: Array<any>) => any,
24 - dateTime: (...args: Array<any>) => any,
25 - },
26 - match?: {
27 - ordinalNumber: (...args: Array<any>) => any,
28 - era: (...args: Array<any>) => any,
29 - quarter: (...args: Array<any>) => any,
30 - month: (...args: Array<any>) => any,
31 - day: (...args: Array<any>) => any,
32 - dayPeriod: (...args: Array<any>) => any,
33 - },
34 - options?: {
35 - weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6,
36 - firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7,
37 - },
38 -}
39 -
40 -export type Duration = {
41 - years?: number,
42 - months?: number,
43 - weeks?: number,
44 - days?: number,
45 - hours?: number,
46 - minutes?: number,
47 - seconds?: number,
48 -}
49 -
50 -declare module.exports: (date: Date | number) => Date
1 -{
2 - "sideEffects": false,
3 - "module": "../esm/startOfHour/index.js",
4 - "typings": "../typings.d.ts"
5 -}
...\ No newline at end of file ...\ No newline at end of file
1 -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
2 -
3 -import { startOfISOWeek } from 'date-fns'
4 -export default startOfISOWeek
1 -"use strict";
2 -
3 -Object.defineProperty(exports, "__esModule", {
4 - value: true
5 -});
6 -exports.default = startOfISOWeek;
7 -
8 -var _index = _interopRequireDefault(require("../startOfWeek/index.js"));
9 -
10 -var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js"));
11 -
12 -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13 -
14 -/**
15 - * @name startOfISOWeek
16 - * @category ISO Week Helpers
17 - * @summary Return the start of an ISO week for the given date.
18 - *
19 - * @description
20 - * Return the start of an ISO week for the given date.
21 - * The result will be in the local timezone.
22 - *
23 - * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
24 - *
25 - * ### v2.0.0 breaking changes:
26 - *
27 - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
28 - *
29 - * @param {Date|Number} date - the original date
30 - * @returns {Date} the start of an ISO week
31 - * @throws {TypeError} 1 argument required
32 - *
33 - * @example
34 - * // The start of an ISO week for 2 September 2014 11:55:00:
35 - * var result = startOfISOWeek(new Date(2014, 8, 2, 11, 55, 0))
36 - * //=> Mon Sep 01 2014 00:00:00
37 - */
38 -function startOfISOWeek(dirtyDate) {
39 - (0, _index2.default)(1, arguments);
40 - return (0, _index.default)(dirtyDate, {
41 - weekStartsOn: 1
42 - });
43 -}
44 -
45 -module.exports = exports.default;
...\ No newline at end of file ...\ No newline at end of file
1 -// @flow
2 -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
3 -
4 -export type Interval = {
5 - start: Date | number,
6 - end: Date | number,
7 -}
8 -
9 -export type Locale = {
10 - code?: string,
11 - formatDistance?: (...args: Array<any>) => any,
12 - formatRelative?: (...args: Array<any>) => any,
13 - localize?: {
14 - ordinalNumber: (...args: Array<any>) => any,
15 - era: (...args: Array<any>) => any,
16 - quarter: (...args: Array<any>) => any,
17 - month: (...args: Array<any>) => any,
18 - day: (...args: Array<any>) => any,
19 - dayPeriod: (...args: Array<any>) => any,
20 - },
21 - formatLong?: {
22 - date: (...args: Array<any>) => any,
23 - time: (...args: Array<any>) => any,
24 - dateTime: (...args: Array<any>) => any,
25 - },
26 - match?: {
27 - ordinalNumber: (...args: Array<any>) => any,
28 - era: (...args: Array<any>) => any,
29 - quarter: (...args: Array<any>) => any,
30 - month: (...args: Array<any>) => any,
31 - day: (...args: Array<any>) => any,
32 - dayPeriod: (...args: Array<any>) => any,
33 - },
34 - options?: {
35 - weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6,
36 - firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7,
37 - },
38 -}
39 -
40 -export type Duration = {
41 - years?: number,
42 - months?: number,
43 - weeks?: number,
44 - days?: number,
45 - hours?: number,
46 - minutes?: number,
47 - seconds?: number,
48 -}
49 -
50 -declare module.exports: (date: Date | number) => Date
1 -{
2 - "sideEffects": false,
3 - "module": "../esm/startOfISOWeek/index.js",
4 - "typings": "../typings.d.ts"
5 -}
...\ No newline at end of file ...\ No newline at end of file
1 -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
2 -
3 -import { startOfISOWeekYear } from 'date-fns'
4 -export default startOfISOWeekYear
1 -"use strict";
2 -
3 -Object.defineProperty(exports, "__esModule", {
4 - value: true
5 -});
6 -exports.default = startOfISOWeekYear;
7 -
8 -var _index = _interopRequireDefault(require("../getISOWeekYear/index.js"));
9 -
10 -var _index2 = _interopRequireDefault(require("../startOfISOWeek/index.js"));
11 -
12 -var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js"));
13 -
14 -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15 -
16 -/**
17 - * @name startOfISOWeekYear
18 - * @category ISO Week-Numbering Year Helpers
19 - * @summary Return the start of an ISO week-numbering year for the given date.
20 - *
21 - * @description
22 - * Return the start of an ISO week-numbering year,
23 - * which always starts 3 days before the year's first Thursday.
24 - * The result will be in the local timezone.
25 - *
26 - * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
27 - *
28 - * ### v2.0.0 breaking changes:
29 - *
30 - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
31 - *
32 - * @param {Date|Number} date - the original date
33 - * @returns {Date} the start of an ISO week-numbering year
34 - * @throws {TypeError} 1 argument required
35 - *
36 - * @example
37 - * // The start of an ISO week-numbering year for 2 July 2005:
38 - * var result = startOfISOWeekYear(new Date(2005, 6, 2))
39 - * //=> Mon Jan 03 2005 00:00:00
40 - */
41 -function startOfISOWeekYear(dirtyDate) {
42 - (0, _index3.default)(1, arguments);
43 - var year = (0, _index.default)(dirtyDate);
44 - var fourthOfJanuary = new Date(0);
45 - fourthOfJanuary.setFullYear(year, 0, 4);
46 - fourthOfJanuary.setHours(0, 0, 0, 0);
47 - var date = (0, _index2.default)(fourthOfJanuary);
48 - return date;
49 -}
50 -
51 -module.exports = exports.default;
...\ No newline at end of file ...\ No newline at end of file
1 -// @flow
2 -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
3 -
4 -export type Interval = {
5 - start: Date | number,
6 - end: Date | number,
7 -}
8 -
9 -export type Locale = {
10 - code?: string,
11 - formatDistance?: (...args: Array<any>) => any,
12 - formatRelative?: (...args: Array<any>) => any,
13 - localize?: {
14 - ordinalNumber: (...args: Array<any>) => any,
15 - era: (...args: Array<any>) => any,
16 - quarter: (...args: Array<any>) => any,
17 - month: (...args: Array<any>) => any,
18 - day: (...args: Array<any>) => any,
19 - dayPeriod: (...args: Array<any>) => any,
20 - },
21 - formatLong?: {
22 - date: (...args: Array<any>) => any,
23 - time: (...args: Array<any>) => any,
24 - dateTime: (...args: Array<any>) => any,
25 - },
26 - match?: {
27 - ordinalNumber: (...args: Array<any>) => any,
28 - era: (...args: Array<any>) => any,
29 - quarter: (...args: Array<any>) => any,
30 - month: (...args: Array<any>) => any,
31 - day: (...args: Array<any>) => any,
32 - dayPeriod: (...args: Array<any>) => any,
33 - },
34 - options?: {
35 - weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6,
36 - firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7,
37 - },
38 -}
39 -
40 -export type Duration = {
41 - years?: number,
42 - months?: number,
43 - weeks?: number,
44 - days?: number,
45 - hours?: number,
46 - minutes?: number,
47 - seconds?: number,
48 -}
49 -
50 -declare module.exports: (date: Date | number) => Date
1 -{
2 - "sideEffects": false,
3 - "module": "../esm/startOfISOWeekYear/index.js",
4 - "typings": "../typings.d.ts"
5 -}
...\ No newline at end of file ...\ No newline at end of file
1 -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
2 -
3 -import { startOfMinute } from 'date-fns'
4 -export default startOfMinute
1 -"use strict";
2 -
3 -Object.defineProperty(exports, "__esModule", {
4 - value: true
5 -});
6 -exports.default = startOfMinute;
7 -
8 -var _index = _interopRequireDefault(require("../toDate/index.js"));
9 -
10 -var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js"));
11 -
12 -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13 -
14 -/**
15 - * @name startOfMinute
16 - * @category Minute Helpers
17 - * @summary Return the start of a minute for the given date.
18 - *
19 - * @description
20 - * Return the start of a minute for the given date.
21 - * The result will be in the local timezone.
22 - *
23 - * ### v2.0.0 breaking changes:
24 - *
25 - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
26 - *
27 - * @param {Date|Number} date - the original date
28 - * @returns {Date} the start of a minute
29 - * @throws {TypeError} 1 argument required
30 - *
31 - * @example
32 - * // The start of a minute for 1 December 2014 22:15:45.400:
33 - * var result = startOfMinute(new Date(2014, 11, 1, 22, 15, 45, 400))
34 - * //=> Mon Dec 01 2014 22:15:00
35 - */
36 -function startOfMinute(dirtyDate) {
37 - (0, _index2.default)(1, arguments);
38 - var date = (0, _index.default)(dirtyDate);
39 - date.setSeconds(0, 0);
40 - return date;
41 -}
42 -
43 -module.exports = exports.default;
...\ No newline at end of file ...\ No newline at end of file
1 -// @flow
2 -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
3 -
4 -export type Interval = {
5 - start: Date | number,
6 - end: Date | number,
7 -}
8 -
9 -export type Locale = {
10 - code?: string,
11 - formatDistance?: (...args: Array<any>) => any,
12 - formatRelative?: (...args: Array<any>) => any,
13 - localize?: {
14 - ordinalNumber: (...args: Array<any>) => any,
15 - era: (...args: Array<any>) => any,
16 - quarter: (...args: Array<any>) => any,
17 - month: (...args: Array<any>) => any,
18 - day: (...args: Array<any>) => any,
19 - dayPeriod: (...args: Array<any>) => any,
20 - },
21 - formatLong?: {
22 - date: (...args: Array<any>) => any,
23 - time: (...args: Array<any>) => any,
24 - dateTime: (...args: Array<any>) => any,
25 - },
26 - match?: {
27 - ordinalNumber: (...args: Array<any>) => any,
28 - era: (...args: Array<any>) => any,
29 - quarter: (...args: Array<any>) => any,
30 - month: (...args: Array<any>) => any,
31 - day: (...args: Array<any>) => any,
32 - dayPeriod: (...args: Array<any>) => any,
33 - },
34 - options?: {
35 - weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6,
36 - firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7,
37 - },
38 -}
39 -
40 -export type Duration = {
41 - years?: number,
42 - months?: number,
43 - weeks?: number,
44 - days?: number,
45 - hours?: number,
46 - minutes?: number,
47 - seconds?: number,
48 -}
49 -
50 -declare module.exports: (date: Date | number) => Date
1 -{
2 - "sideEffects": false,
3 - "module": "../esm/startOfMinute/index.js",
4 - "typings": "../typings.d.ts"
5 -}
...\ No newline at end of file ...\ No newline at end of file
1 -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
2 -
3 -import { startOfMonth } from 'date-fns'
4 -export default startOfMonth
1 -"use strict";
2 -
3 -Object.defineProperty(exports, "__esModule", {
4 - value: true
5 -});
6 -exports.default = startOfMonth;
7 -
8 -var _index = _interopRequireDefault(require("../toDate/index.js"));
9 -
10 -var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js"));
11 -
12 -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13 -
14 -/**
15 - * @name startOfMonth
16 - * @category Month Helpers
17 - * @summary Return the start of a month for the given date.
18 - *
19 - * @description
20 - * Return the start of a month for the given date.
21 - * The result will be in the local timezone.
22 - *
23 - * ### v2.0.0 breaking changes:
24 - *
25 - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
26 - *
27 - * @param {Date|Number} date - the original date
28 - * @returns {Date} the start of a month
29 - * @throws {TypeError} 1 argument required
30 - *
31 - * @example
32 - * // The start of a month for 2 September 2014 11:55:00:
33 - * var result = startOfMonth(new Date(2014, 8, 2, 11, 55, 0))
34 - * //=> Mon Sep 01 2014 00:00:00
35 - */
36 -function startOfMonth(dirtyDate) {
37 - (0, _index2.default)(1, arguments);
38 - var date = (0, _index.default)(dirtyDate);
39 - date.setDate(1);
40 - date.setHours(0, 0, 0, 0);
41 - return date;
42 -}
43 -
44 -module.exports = exports.default;
...\ No newline at end of file ...\ No newline at end of file
1 -// @flow
2 -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
3 -
4 -export type Interval = {
5 - start: Date | number,
6 - end: Date | number,
7 -}
8 -
9 -export type Locale = {
10 - code?: string,
11 - formatDistance?: (...args: Array<any>) => any,
12 - formatRelative?: (...args: Array<any>) => any,
13 - localize?: {
14 - ordinalNumber: (...args: Array<any>) => any,
15 - era: (...args: Array<any>) => any,
16 - quarter: (...args: Array<any>) => any,
17 - month: (...args: Array<any>) => any,
18 - day: (...args: Array<any>) => any,
19 - dayPeriod: (...args: Array<any>) => any,
20 - },
21 - formatLong?: {
22 - date: (...args: Array<any>) => any,
23 - time: (...args: Array<any>) => any,
24 - dateTime: (...args: Array<any>) => any,
25 - },
26 - match?: {
27 - ordinalNumber: (...args: Array<any>) => any,
28 - era: (...args: Array<any>) => any,
29 - quarter: (...args: Array<any>) => any,
30 - month: (...args: Array<any>) => any,
31 - day: (...args: Array<any>) => any,
32 - dayPeriod: (...args: Array<any>) => any,
33 - },
34 - options?: {
35 - weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6,
36 - firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7,
37 - },
38 -}
39 -
40 -export type Duration = {
41 - years?: number,
42 - months?: number,
43 - weeks?: number,
44 - days?: number,
45 - hours?: number,
46 - minutes?: number,
47 - seconds?: number,
48 -}
49 -
50 -declare module.exports: (date: Date | number) => Date
1 -{
2 - "sideEffects": false,
3 - "module": "../esm/startOfMonth/index.js",
4 - "typings": "../typings.d.ts"
5 -}
...\ No newline at end of file ...\ No newline at end of file
1 -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
2 -
3 -import { startOfQuarter } from 'date-fns'
4 -export default startOfQuarter
1 -"use strict";
2 -
3 -Object.defineProperty(exports, "__esModule", {
4 - value: true
5 -});
6 -exports.default = startOfQuarter;
7 -
8 -var _index = _interopRequireDefault(require("../toDate/index.js"));
9 -
10 -var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js"));
11 -
12 -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13 -
14 -/**
15 - * @name startOfQuarter
16 - * @category Quarter Helpers
17 - * @summary Return the start of a year quarter for the given date.
18 - *
19 - * @description
20 - * Return the start of a year quarter for the given date.
21 - * The result will be in the local timezone.
22 - *
23 - * ### v2.0.0 breaking changes:
24 - *
25 - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
26 - *
27 - * @param {Date|Number} date - the original date
28 - * @returns {Date} the start of a quarter
29 - * @throws {TypeError} 1 argument required
30 - *
31 - * @example
32 - * // The start of a quarter for 2 September 2014 11:55:00:
33 - * var result = startOfQuarter(new Date(2014, 8, 2, 11, 55, 0))
34 - * //=> Tue Jul 01 2014 00:00:00
35 - */
36 -function startOfQuarter(dirtyDate) {
37 - (0, _index2.default)(1, arguments);
38 - var date = (0, _index.default)(dirtyDate);
39 - var currentMonth = date.getMonth();
40 - var month = currentMonth - currentMonth % 3;
41 - date.setMonth(month, 1);
42 - date.setHours(0, 0, 0, 0);
43 - return date;
44 -}
45 -
46 -module.exports = exports.default;
...\ No newline at end of file ...\ No newline at end of file
1 -// @flow
2 -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
3 -
4 -export type Interval = {
5 - start: Date | number,
6 - end: Date | number,
7 -}
8 -
9 -export type Locale = {
10 - code?: string,
11 - formatDistance?: (...args: Array<any>) => any,
12 - formatRelative?: (...args: Array<any>) => any,
13 - localize?: {
14 - ordinalNumber: (...args: Array<any>) => any,
15 - era: (...args: Array<any>) => any,
16 - quarter: (...args: Array<any>) => any,
17 - month: (...args: Array<any>) => any,
18 - day: (...args: Array<any>) => any,
19 - dayPeriod: (...args: Array<any>) => any,
20 - },
21 - formatLong?: {
22 - date: (...args: Array<any>) => any,
23 - time: (...args: Array<any>) => any,
24 - dateTime: (...args: Array<any>) => any,
25 - },
26 - match?: {
27 - ordinalNumber: (...args: Array<any>) => any,
28 - era: (...args: Array<any>) => any,
29 - quarter: (...args: Array<any>) => any,
30 - month: (...args: Array<any>) => any,
31 - day: (...args: Array<any>) => any,
32 - dayPeriod: (...args: Array<any>) => any,
33 - },
34 - options?: {
35 - weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6,
36 - firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7,
37 - },
38 -}
39 -
40 -export type Duration = {
41 - years?: number,
42 - months?: number,
43 - weeks?: number,
44 - days?: number,
45 - hours?: number,
46 - minutes?: number,
47 - seconds?: number,
48 -}
49 -
50 -declare module.exports: (date: Date | number) => Date
1 -{
2 - "sideEffects": false,
3 - "module": "../esm/startOfQuarter/index.js",
4 - "typings": "../typings.d.ts"
5 -}
...\ No newline at end of file ...\ No newline at end of file
1 -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
2 -
3 -import { startOfSecond } from 'date-fns'
4 -export default startOfSecond
1 -"use strict";
2 -
3 -Object.defineProperty(exports, "__esModule", {
4 - value: true
5 -});
6 -exports.default = startOfSecond;
7 -
8 -var _index = _interopRequireDefault(require("../toDate/index.js"));
9 -
10 -var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js"));
11 -
12 -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13 -
14 -/**
15 - * @name startOfSecond
16 - * @category Second Helpers
17 - * @summary Return the start of a second for the given date.
18 - *
19 - * @description
20 - * Return the start of a second for the given date.
21 - * The result will be in the local timezone.
22 - *
23 - * ### v2.0.0 breaking changes:
24 - *
25 - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
26 - *
27 - * @param {Date|Number} date - the original date
28 - * @returns {Date} the start of a second
29 - * @throws {TypeError} 1 argument required
30 - *
31 - * @example
32 - * // The start of a second for 1 December 2014 22:15:45.400:
33 - * var result = startOfSecond(new Date(2014, 11, 1, 22, 15, 45, 400))
34 - * //=> Mon Dec 01 2014 22:15:45.000
35 - */
36 -function startOfSecond(dirtyDate) {
37 - (0, _index2.default)(1, arguments);
38 - var date = (0, _index.default)(dirtyDate);
39 - date.setMilliseconds(0);
40 - return date;
41 -}
42 -
43 -module.exports = exports.default;
...\ No newline at end of file ...\ No newline at end of file
1 -// @flow
2 -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
3 -
4 -export type Interval = {
5 - start: Date | number,
6 - end: Date | number,
7 -}
8 -
9 -export type Locale = {
10 - code?: string,
11 - formatDistance?: (...args: Array<any>) => any,
12 - formatRelative?: (...args: Array<any>) => any,
13 - localize?: {
14 - ordinalNumber: (...args: Array<any>) => any,
15 - era: (...args: Array<any>) => any,
16 - quarter: (...args: Array<any>) => any,
17 - month: (...args: Array<any>) => any,
18 - day: (...args: Array<any>) => any,
19 - dayPeriod: (...args: Array<any>) => any,
20 - },
21 - formatLong?: {
22 - date: (...args: Array<any>) => any,
23 - time: (...args: Array<any>) => any,
24 - dateTime: (...args: Array<any>) => any,
25 - },
26 - match?: {
27 - ordinalNumber: (...args: Array<any>) => any,
28 - era: (...args: Array<any>) => any,
29 - quarter: (...args: Array<any>) => any,
30 - month: (...args: Array<any>) => any,
31 - day: (...args: Array<any>) => any,
32 - dayPeriod: (...args: Array<any>) => any,
33 - },
34 - options?: {
35 - weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6,
36 - firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7,
37 - },
38 -}
39 -
40 -export type Duration = {
41 - years?: number,
42 - months?: number,
43 - weeks?: number,
44 - days?: number,
45 - hours?: number,
46 - minutes?: number,
47 - seconds?: number,
48 -}
49 -
50 -declare module.exports: (date: Date | number) => Date
1 -{
2 - "sideEffects": false,
3 - "module": "../esm/startOfSecond/index.js",
4 - "typings": "../typings.d.ts"
5 -}
...\ No newline at end of file ...\ No newline at end of file
1 -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
2 -
3 -import { startOfToday } from 'date-fns'
4 -export default startOfToday
1 -"use strict";
2 -
3 -Object.defineProperty(exports, "__esModule", {
4 - value: true
5 -});
6 -exports.default = startOfToday;
7 -
8 -var _index = _interopRequireDefault(require("../startOfDay/index.js"));
9 -
10 -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11 -
12 -/**
13 - * @name startOfToday
14 - * @category Day Helpers
15 - * @summary Return the start of today.
16 - * @pure false
17 - *
18 - * @description
19 - * Return the start of today.
20 - *
21 - * > ⚠️ Please note that this function is not present in the FP submodule as
22 - * > it uses `Date.now()` internally hence impure and can't be safely curried.
23 - *
24 - * ### v2.0.0 breaking changes:
25 - *
26 - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
27 - *
28 - * @returns {Date} the start of today
29 - *
30 - * @example
31 - * // If today is 6 October 2014:
32 - * var result = startOfToday()
33 - * //=> Mon Oct 6 2014 00:00:00
34 - */
35 -function startOfToday() {
36 - return (0, _index.default)(Date.now());
37 -}
38 -
39 -module.exports = exports.default;
...\ No newline at end of file ...\ No newline at end of file
1 -// @flow
2 -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
3 -
4 -export type Interval = {
5 - start: Date | number,
6 - end: Date | number,
7 -}
8 -
9 -export type Locale = {
10 - code?: string,
11 - formatDistance?: (...args: Array<any>) => any,
12 - formatRelative?: (...args: Array<any>) => any,
13 - localize?: {
14 - ordinalNumber: (...args: Array<any>) => any,
15 - era: (...args: Array<any>) => any,
16 - quarter: (...args: Array<any>) => any,
17 - month: (...args: Array<any>) => any,
18 - day: (...args: Array<any>) => any,
19 - dayPeriod: (...args: Array<any>) => any,
20 - },
21 - formatLong?: {
22 - date: (...args: Array<any>) => any,
23 - time: (...args: Array<any>) => any,
24 - dateTime: (...args: Array<any>) => any,
25 - },
26 - match?: {
27 - ordinalNumber: (...args: Array<any>) => any,
28 - era: (...args: Array<any>) => any,
29 - quarter: (...args: Array<any>) => any,
30 - month: (...args: Array<any>) => any,
31 - day: (...args: Array<any>) => any,
32 - dayPeriod: (...args: Array<any>) => any,
33 - },
34 - options?: {
35 - weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6,
36 - firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7,
37 - },
38 -}
39 -
40 -export type Duration = {
41 - years?: number,
42 - months?: number,
43 - weeks?: number,
44 - days?: number,
45 - hours?: number,
46 - minutes?: number,
47 - seconds?: number,
48 -}
49 -
50 -declare module.exports: () => Date
1 -{
2 - "sideEffects": false,
3 - "module": "../esm/startOfToday/index.js",
4 - "typings": "../typings.d.ts"
5 -}
...\ No newline at end of file ...\ No newline at end of file
1 -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
2 -
3 -import { startOfTomorrow } from 'date-fns'
4 -export default startOfTomorrow
1 -"use strict";
2 -
3 -Object.defineProperty(exports, "__esModule", {
4 - value: true
5 -});
6 -exports.default = startOfTomorrow;
7 -
8 -/**
9 - * @name startOfTomorrow
10 - * @category Day Helpers
11 - * @summary Return the start of tomorrow.
12 - * @pure false
13 - *
14 - * @description
15 - * Return the start of tomorrow.
16 - *
17 - * > ⚠️ Please note that this function is not present in the FP submodule as
18 - * > it uses `new Date()` internally hence impure and can't be safely curried.
19 - *
20 - * ### v2.0.0 breaking changes:
21 - *
22 - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
23 - *
24 - * @returns {Date} the start of tomorrow
25 - *
26 - * @example
27 - * // If today is 6 October 2014:
28 - * var result = startOfTomorrow()
29 - * //=> Tue Oct 7 2014 00:00:00
30 - */
31 -function startOfTomorrow() {
32 - var now = new Date();
33 - var year = now.getFullYear();
34 - var month = now.getMonth();
35 - var day = now.getDate();
36 - var date = new Date(0);
37 - date.setFullYear(year, month, day + 1);
38 - date.setHours(0, 0, 0, 0);
39 - return date;
40 -}
41 -
42 -module.exports = exports.default;
...\ No newline at end of file ...\ No newline at end of file
1 -// @flow
2 -// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
3 -
4 -export type Interval = {
5 - start: Date | number,
6 - end: Date | number,
7 -}
8 -
9 -export type Locale = {
10 - code?: string,
11 - formatDistance?: (...args: Array<any>) => any,
12 - formatRelative?: (...args: Array<any>) => any,
13 - localize?: {
14 - ordinalNumber: (...args: Array<any>) => any,
15 - era: (...args: Array<any>) => any,
16 - quarter: (...args: Array<any>) => any,
17 - month: (...args: Array<any>) => any,
18 - day: (...args: Array<any>) => any,
19 - dayPeriod: (...args: Array<any>) => any,
20 - },
21 - formatLong?: {
22 - date: (...args: Array<any>) => any,
23 - time: (...args: Array<any>) => any,
24 - dateTime: (...args: Array<any>) => any,
25 - },
26 - match?: {
27 - ordinalNumber: (...args: Array<any>) => any,
28 - era: (...args: Array<any>) => any,
29 - quarter: (...args: Array<any>) => any,
30 - month: (...args: Array<any>) => any,
31 - day: (...args: Array<any>) => any,
32 - dayPeriod: (...args: Array<any>) => any,
33 - },
34 - options?: {
35 - weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6,
36 - firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7,
37 - },
38 -}
39 -
40 -export type Duration = {
41 - years?: number,
42 - months?: number,
43 - weeks?: number,
44 - days?: number,
45 - hours?: number,
46 - minutes?: number,
47 - seconds?: number,
48 -}
49 -
50 -declare module.exports: () => Date
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.