registration
This commit is contained in:
93
frontend/style/node_modules/date-fns/constants.js
generated
vendored
93
frontend/style/node_modules/date-fns/constants.js
generated
vendored
@@ -1,28 +1,4 @@
|
||||
"use strict";
|
||||
exports.secondsInYear =
|
||||
exports.secondsInWeek =
|
||||
exports.secondsInQuarter =
|
||||
exports.secondsInMonth =
|
||||
exports.secondsInMinute =
|
||||
exports.secondsInHour =
|
||||
exports.secondsInDay =
|
||||
exports.quartersInYear =
|
||||
exports.monthsInYear =
|
||||
exports.monthsInQuarter =
|
||||
exports.minutesInYear =
|
||||
exports.minutesInMonth =
|
||||
exports.minutesInHour =
|
||||
exports.minutesInDay =
|
||||
exports.minTime =
|
||||
exports.millisecondsInWeek =
|
||||
exports.millisecondsInSecond =
|
||||
exports.millisecondsInMinute =
|
||||
exports.millisecondsInHour =
|
||||
exports.millisecondsInDay =
|
||||
exports.maxTime =
|
||||
exports.daysInYear =
|
||||
exports.daysInWeek =
|
||||
void 0; /**
|
||||
/**
|
||||
* @module constants
|
||||
* @summary Useful constants
|
||||
* @description
|
||||
@@ -31,7 +7,7 @@ exports.secondsInYear =
|
||||
* The constants could be imported from `date-fns/constants`:
|
||||
*
|
||||
* ```ts
|
||||
* import { maxTime, minTime } from "date-fns/constants";
|
||||
* import { maxTime, minTime } from "./constants/date-fns/constants";
|
||||
*
|
||||
* function isAllowedTime(time) {
|
||||
* return time <= maxTime && time >= minTime;
|
||||
@@ -44,7 +20,7 @@ exports.secondsInYear =
|
||||
* @name daysInWeek
|
||||
* @summary Days in 1 week.
|
||||
*/
|
||||
const daysInWeek = (exports.daysInWeek = 7);
|
||||
export const daysInWeek = 7;
|
||||
|
||||
/**
|
||||
* @constant
|
||||
@@ -56,10 +32,10 @@ const daysInWeek = (exports.daysInWeek = 7);
|
||||
*
|
||||
* One years equals 365.2425 days according to the formula:
|
||||
*
|
||||
* > Leap year occures every 4 years, except for years that are divisable by 100 and not divisable by 400.
|
||||
* > Leap year occurs every 4 years, except for years that are divisible by 100 and not divisible by 400.
|
||||
* > 1 mean year = (365+1/4-1/100+1/400) days = 365.2425 days
|
||||
*/
|
||||
const daysInYear = (exports.daysInYear = 365.2425);
|
||||
export const daysInYear = 365.2425;
|
||||
|
||||
/**
|
||||
* @constant
|
||||
@@ -67,7 +43,7 @@ const daysInYear = (exports.daysInYear = 365.2425);
|
||||
* @summary Maximum allowed time.
|
||||
*
|
||||
* @example
|
||||
* import { maxTime } from "date-fns/constants";
|
||||
* import { maxTime } from "./constants/date-fns/constants";
|
||||
*
|
||||
* const isValid = 8640000000000001 <= maxTime;
|
||||
* //=> false
|
||||
@@ -75,7 +51,7 @@ const daysInYear = (exports.daysInYear = 365.2425);
|
||||
* new Date(8640000000000001);
|
||||
* //=> Invalid Date
|
||||
*/
|
||||
const maxTime = (exports.maxTime = Math.pow(10, 8) * 24 * 60 * 60 * 1000);
|
||||
export const maxTime = Math.pow(10, 8) * 24 * 60 * 60 * 1000;
|
||||
|
||||
/**
|
||||
* @constant
|
||||
@@ -83,7 +59,7 @@ const maxTime = (exports.maxTime = Math.pow(10, 8) * 24 * 60 * 60 * 1000);
|
||||
* @summary Minimum allowed time.
|
||||
*
|
||||
* @example
|
||||
* import { minTime } from "date-fns/constants";
|
||||
* import { minTime } from "./constants/date-fns/constants";
|
||||
*
|
||||
* const isValid = -8640000000000001 >= minTime;
|
||||
* //=> false
|
||||
@@ -91,137 +67,150 @@ const maxTime = (exports.maxTime = Math.pow(10, 8) * 24 * 60 * 60 * 1000);
|
||||
* new Date(-8640000000000001)
|
||||
* //=> Invalid Date
|
||||
*/
|
||||
const minTime = (exports.minTime = -maxTime);
|
||||
export const minTime = -maxTime;
|
||||
|
||||
/**
|
||||
* @constant
|
||||
* @name millisecondsInWeek
|
||||
* @summary Milliseconds in 1 week.
|
||||
*/
|
||||
const millisecondsInWeek = (exports.millisecondsInWeek = 604800000);
|
||||
export const millisecondsInWeek = 604800000;
|
||||
|
||||
/**
|
||||
* @constant
|
||||
* @name millisecondsInDay
|
||||
* @summary Milliseconds in 1 day.
|
||||
*/
|
||||
const millisecondsInDay = (exports.millisecondsInDay = 86400000);
|
||||
export const millisecondsInDay = 86400000;
|
||||
|
||||
/**
|
||||
* @constant
|
||||
* @name millisecondsInMinute
|
||||
* @summary Milliseconds in 1 minute
|
||||
*/
|
||||
const millisecondsInMinute = (exports.millisecondsInMinute = 60000);
|
||||
export const millisecondsInMinute = 60000;
|
||||
|
||||
/**
|
||||
* @constant
|
||||
* @name millisecondsInHour
|
||||
* @summary Milliseconds in 1 hour
|
||||
*/
|
||||
const millisecondsInHour = (exports.millisecondsInHour = 3600000);
|
||||
export const millisecondsInHour = 3600000;
|
||||
|
||||
/**
|
||||
* @constant
|
||||
* @name millisecondsInSecond
|
||||
* @summary Milliseconds in 1 second
|
||||
*/
|
||||
const millisecondsInSecond = (exports.millisecondsInSecond = 1000);
|
||||
export const millisecondsInSecond = 1000;
|
||||
|
||||
/**
|
||||
* @constant
|
||||
* @name minutesInYear
|
||||
* @summary Minutes in 1 year.
|
||||
*/
|
||||
const minutesInYear = (exports.minutesInYear = 525600);
|
||||
export const minutesInYear = 525600;
|
||||
|
||||
/**
|
||||
* @constant
|
||||
* @name minutesInMonth
|
||||
* @summary Minutes in 1 month.
|
||||
*/
|
||||
const minutesInMonth = (exports.minutesInMonth = 43200);
|
||||
export const minutesInMonth = 43200;
|
||||
|
||||
/**
|
||||
* @constant
|
||||
* @name minutesInDay
|
||||
* @summary Minutes in 1 day.
|
||||
*/
|
||||
const minutesInDay = (exports.minutesInDay = 1440);
|
||||
export const minutesInDay = 1440;
|
||||
|
||||
/**
|
||||
* @constant
|
||||
* @name minutesInHour
|
||||
* @summary Minutes in 1 hour.
|
||||
*/
|
||||
const minutesInHour = (exports.minutesInHour = 60);
|
||||
export const minutesInHour = 60;
|
||||
|
||||
/**
|
||||
* @constant
|
||||
* @name monthsInQuarter
|
||||
* @summary Months in 1 quarter.
|
||||
*/
|
||||
const monthsInQuarter = (exports.monthsInQuarter = 3);
|
||||
export const monthsInQuarter = 3;
|
||||
|
||||
/**
|
||||
* @constant
|
||||
* @name monthsInYear
|
||||
* @summary Months in 1 year.
|
||||
*/
|
||||
const monthsInYear = (exports.monthsInYear = 12);
|
||||
export const monthsInYear = 12;
|
||||
|
||||
/**
|
||||
* @constant
|
||||
* @name quartersInYear
|
||||
* @summary Quarters in 1 year
|
||||
*/
|
||||
const quartersInYear = (exports.quartersInYear = 4);
|
||||
export const quartersInYear = 4;
|
||||
|
||||
/**
|
||||
* @constant
|
||||
* @name secondsInHour
|
||||
* @summary Seconds in 1 hour.
|
||||
*/
|
||||
const secondsInHour = (exports.secondsInHour = 3600);
|
||||
export const secondsInHour = 3600;
|
||||
|
||||
/**
|
||||
* @constant
|
||||
* @name secondsInMinute
|
||||
* @summary Seconds in 1 minute.
|
||||
*/
|
||||
const secondsInMinute = (exports.secondsInMinute = 60);
|
||||
export const secondsInMinute = 60;
|
||||
|
||||
/**
|
||||
* @constant
|
||||
* @name secondsInDay
|
||||
* @summary Seconds in 1 day.
|
||||
*/
|
||||
const secondsInDay = (exports.secondsInDay = secondsInHour * 24);
|
||||
export const secondsInDay = secondsInHour * 24;
|
||||
|
||||
/**
|
||||
* @constant
|
||||
* @name secondsInWeek
|
||||
* @summary Seconds in 1 week.
|
||||
*/
|
||||
const secondsInWeek = (exports.secondsInWeek = secondsInDay * 7);
|
||||
export const secondsInWeek = secondsInDay * 7;
|
||||
|
||||
/**
|
||||
* @constant
|
||||
* @name secondsInYear
|
||||
* @summary Seconds in 1 year.
|
||||
*/
|
||||
const secondsInYear = (exports.secondsInYear = secondsInDay * daysInYear);
|
||||
export const secondsInYear = secondsInDay * daysInYear;
|
||||
|
||||
/**
|
||||
* @constant
|
||||
* @name secondsInMonth
|
||||
* @summary Seconds in 1 month
|
||||
*/
|
||||
const secondsInMonth = (exports.secondsInMonth = secondsInYear / 12);
|
||||
export const secondsInMonth = secondsInYear / 12;
|
||||
|
||||
/**
|
||||
* @constant
|
||||
* @name secondsInQuarter
|
||||
* @summary Seconds in 1 quarter.
|
||||
*/
|
||||
const secondsInQuarter = (exports.secondsInQuarter = secondsInMonth * 3);
|
||||
export const secondsInQuarter = secondsInMonth * 3;
|
||||
|
||||
/**
|
||||
* @constant
|
||||
* @name constructFromSymbol
|
||||
* @summary Symbol enabling Date extensions to inherit properties from the reference date.
|
||||
*
|
||||
* The symbol is used to enable the `constructFrom` function to construct a date
|
||||
* using a reference date and a value. It allows to transfer extra properties
|
||||
* from the reference date to the new date. It's useful for extensions like
|
||||
* [`TZDate`](https://github.com/date-fns/tz) that accept a time zone as
|
||||
* a constructor argument.
|
||||
*/
|
||||
export const constructFromSymbol = Symbol.for("constructDateFrom");
|
||||
|
||||
Reference in New Issue
Block a user