chronos-date 2.0.2 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -2
- package/dist/constants.d.mts +1 -1
- package/dist/convert-C8LsoKmI-Blf3eLS6.mjs +285 -0
- package/dist/convert-C8LsoKmI-uBhT5hZQ.cjs +387 -0
- package/dist/dist-BPHYJA0t.mjs +70 -0
- package/dist/dist-CdMlZMZa.cjs +75 -0
- package/dist/{greet-DNGvP7nm.mjs → greet-BC86-X9W.mjs} +2 -2
- package/dist/{greet-CMkwXJ7o.cjs → greet-Brz0CVv1.cjs} +8 -8
- package/dist/guards-DTI799nG.mjs +46 -0
- package/dist/guards-dH9JJIso.cjs +51 -0
- package/dist/guards.cjs +14 -16
- package/dist/guards.d.cts +1 -1
- package/dist/guards.d.mts +1 -1
- package/dist/guards.mjs +1 -3
- package/dist/{helpers-Bq7Hczoa.cjs → helpers-BMDeRLjO.cjs} +6 -8
- package/dist/{helpers-C2spzGZ-.mjs → helpers-t49KkxOE.mjs} +2 -4
- package/dist/index.cjs +13 -14
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +4 -5
- package/dist/plugins/banglaPlugin.cjs +16 -33
- package/dist/plugins/banglaPlugin.d.cts +1 -1
- package/dist/plugins/banglaPlugin.d.mts +1 -1
- package/dist/plugins/banglaPlugin.mjs +2 -19
- package/dist/plugins/businessPlugin.cjs +4 -5
- package/dist/plugins/businessPlugin.d.cts +1 -1
- package/dist/plugins/businessPlugin.d.mts +1 -1
- package/dist/plugins/businessPlugin.mjs +1 -2
- package/dist/plugins/dateRangePlugin.cjs +4 -5
- package/dist/plugins/dateRangePlugin.d.cts +1 -1
- package/dist/plugins/dateRangePlugin.d.mts +1 -1
- package/dist/plugins/dateRangePlugin.mjs +1 -2
- package/dist/plugins/dayPartPlugin.cjs +2 -2
- package/dist/plugins/dayPartPlugin.d.cts +1 -1
- package/dist/plugins/dayPartPlugin.d.mts +1 -1
- package/dist/plugins/dayPartPlugin.mjs +1 -1
- package/dist/plugins/durationPlugin.d.cts +1 -1
- package/dist/plugins/durationPlugin.d.mts +1 -1
- package/dist/plugins/fromNowPlugin.cjs +2 -2
- package/dist/plugins/fromNowPlugin.d.cts +1 -1
- package/dist/plugins/fromNowPlugin.d.mts +1 -1
- package/dist/plugins/fromNowPlugin.mjs +1 -1
- package/dist/plugins/greetingPlugin.cjs +1 -1
- package/dist/plugins/greetingPlugin.d.cts +1 -1
- package/dist/plugins/greetingPlugin.d.mts +1 -1
- package/dist/plugins/greetingPlugin.mjs +1 -1
- package/dist/plugins/palindromePlugin.cjs +2 -9
- package/dist/plugins/palindromePlugin.d.cts +1 -1
- package/dist/plugins/palindromePlugin.d.mts +1 -1
- package/dist/plugins/palindromePlugin.mjs +1 -8
- package/dist/plugins/relativeTimePlugin.d.cts +1 -1
- package/dist/plugins/relativeTimePlugin.d.mts +1 -1
- package/dist/plugins/roundPlugin.cjs +8 -8
- package/dist/plugins/roundPlugin.d.cts +1 -1
- package/dist/plugins/roundPlugin.d.mts +1 -1
- package/dist/plugins/roundPlugin.mjs +1 -1
- package/dist/plugins/seasonPlugin.d.cts +1 -1
- package/dist/plugins/seasonPlugin.d.mts +1 -1
- package/dist/plugins/timeZonePlugin.cjs +3 -3
- package/dist/plugins/timeZonePlugin.d.cts +1 -1
- package/dist/plugins/timeZonePlugin.d.mts +1 -1
- package/dist/plugins/timeZonePlugin.mjs +2 -2
- package/dist/plugins/zodiacPlugin.cjs +1 -1
- package/dist/plugins/zodiacPlugin.d.cts +1 -1
- package/dist/plugins/zodiacPlugin.d.mts +1 -1
- package/dist/plugins/zodiacPlugin.mjs +1 -1
- package/dist/{types-Be4ZMpOV.d.mts → types-CiFnGEL8.d.mts} +967 -902
- package/dist/{types-dNpvroNQ.d.cts → types-zhhEJ8N7.d.cts} +966 -901
- package/dist/types.d.cts +1 -1
- package/dist/types.d.mts +1 -1
- package/dist/{utilities-C6NiChRE.mjs → utils-DBy7S7hH.mjs} +3 -5
- package/dist/{utilities-CCnKWAsS.cjs → utils-S_aw0TeC.cjs} +8 -10
- package/dist/utils.cjs +33 -34
- package/dist/utils.d.cts +4 -4
- package/dist/utils.d.mts +4 -4
- package/dist/utils.mjs +4 -5
- package/package.json +3 -3
- package/dist/convert-BDQBTK5P.cjs +0 -49
- package/dist/convert-D5Cd0cCg.mjs +0 -38
- package/dist/non-primitives-BqjRwK2B.cjs +0 -68
- package/dist/non-primitives-CbAOB6lb.mjs +0 -38
- package/dist/primitives-BXhrgs9R.mjs +0 -35
- package/dist/primitives-DfO90c3G.cjs +0 -65
- package/dist/utilities-BnHD2hHf.mjs +0 -59
- package/dist/utilities-C_KmjIRK.cjs +0 -88
- /package/dist/{seasons-B_kjFWIX.d.mts → seasons-DYk2jvtn.d.mts} +0 -0
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import { l as DayPart, s as ChronosPlugin, u as DayPartConfig } from "../types-CiFnGEL8.mjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/dayPartPlugin.d.ts
|
|
20
20
|
declare module 'chronos-date' {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { a as DATE_PART_RANGES } from "../basic-DqKyujoj.mjs";
|
|
18
|
-
import {
|
|
18
|
+
import { s as isNotEmptyObject } from "../convert-C8LsoKmI-Blf3eLS6.mjs";
|
|
19
19
|
|
|
20
20
|
//#region src/plugins/dayPartPlugin.ts
|
|
21
21
|
/** * Plugin to inject `getPartOfDay` method */
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import { O as ChronosInput, _ as TimeDuration, f as DurationOptions, s as ChronosPlugin } from "../types-zhhEJ8N7.cjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/durationPlugin.d.ts
|
|
20
20
|
declare module 'chronos-date' {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import { O as ChronosInput, _ as TimeDuration, f as DurationOptions, s as ChronosPlugin } from "../types-CiFnGEL8.mjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/durationPlugin.d.ts
|
|
20
20
|
declare module 'chronos-date' {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
18
18
|
const require_basic = require('../basic-DsQqC5nZ.cjs');
|
|
19
|
-
const
|
|
19
|
+
const require_convert_C8LsoKmI = require('../convert-C8LsoKmI-uBhT5hZQ.cjs');
|
|
20
20
|
|
|
21
21
|
//#region src/plugins/fromNowPlugin.ts
|
|
22
22
|
/** * Plugin to inject `fromNow` method */
|
|
@@ -71,7 +71,7 @@ const fromNowPlugin = ($Chronos) => {
|
|
|
71
71
|
const parts = [];
|
|
72
72
|
/** Push value-unit string to `parts` array */
|
|
73
73
|
const _pushToParts = (value, unit) => {
|
|
74
|
-
parts.push(
|
|
74
|
+
parts.push(require_convert_C8LsoKmI.formatUnitWithPlural(value, unit));
|
|
75
75
|
};
|
|
76
76
|
/** Check if a unit level is required */
|
|
77
77
|
const _isLevelRequired = (unit) => {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import { O as ChronosInput, ft as FromNowUnit, s as ChronosPlugin } from "../types-zhhEJ8N7.cjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/fromNowPlugin.d.ts
|
|
20
20
|
declare module 'chronos-date' {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import { O as ChronosInput, ft as FromNowUnit, s as ChronosPlugin } from "../types-CiFnGEL8.mjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/fromNowPlugin.d.ts
|
|
20
20
|
declare module 'chronos-date' {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { s as INTERNALS } from "../basic-DqKyujoj.mjs";
|
|
18
|
-
import { t as formatUnitWithPlural } from "../convert-
|
|
18
|
+
import { t as formatUnitWithPlural } from "../convert-C8LsoKmI-Blf3eLS6.mjs";
|
|
19
19
|
|
|
20
20
|
//#region src/plugins/fromNowPlugin.ts
|
|
21
21
|
/** * Plugin to inject `fromNow` method */
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
18
|
-
const require_greet = require('../greet-
|
|
18
|
+
const require_greet = require('../greet-Brz0CVv1.cjs');
|
|
19
19
|
|
|
20
20
|
//#region src/plugins/greetingPlugin.ts
|
|
21
21
|
/** * Plugin to inject `getGreeting`/`greet` method */
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import { pt as GreetingConfigs, s as ChronosPlugin } from "../types-zhhEJ8N7.cjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/greetingPlugin.d.ts
|
|
20
20
|
declare module 'chronos-date' {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import { pt as GreetingConfigs, s as ChronosPlugin } from "../types-CiFnGEL8.mjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/greetingPlugin.d.ts
|
|
20
20
|
declare module 'chronos-date' {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { t as getGreeting } from "../greet-
|
|
17
|
+
import { t as getGreeting } from "../greet-BC86-X9W.mjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/greetingPlugin.ts
|
|
20
20
|
/** * Plugin to inject `getGreeting`/`greet` method */
|
|
@@ -15,22 +15,15 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
18
|
-
const
|
|
18
|
+
const require_guards = require('../guards-dH9JJIso.cjs');
|
|
19
19
|
|
|
20
|
-
//#region node_modules/.pnpm/nhb-toolbox@4.30.14/node_modules/nhb-toolbox/dist/esm/string/guards.js
|
|
21
|
-
const isPalindrome = (input) => {
|
|
22
|
-
const normalized = input.toLowerCase().replace(/[^a-z0-9]/g, "");
|
|
23
|
-
return normalized === require_convert.reverseString(normalized);
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
//#endregion
|
|
27
20
|
//#region src/plugins/palindromePlugin.ts
|
|
28
21
|
/** * Plugin to inject `isPalindromeDate` method */
|
|
29
22
|
const palindromePlugin = ($Chronos) => {
|
|
30
23
|
$Chronos.prototype.isPalindromeDate = function(shortYear = false) {
|
|
31
24
|
const padded = this.formatSafe(shortYear ? "YY-MM-DD" : "YYYY-MM-DD");
|
|
32
25
|
const normal = this.formatSafe(shortYear ? "YY-M-D" : "YYYY-M-D");
|
|
33
|
-
return isPalindrome(padded) || isPalindrome(normal);
|
|
26
|
+
return require_guards.isPalindrome(padded) || require_guards.isPalindrome(normal);
|
|
34
27
|
};
|
|
35
28
|
};
|
|
36
29
|
|
|
@@ -14,15 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import { t as isPalindrome } from "../guards-DTI799nG.mjs";
|
|
18
18
|
|
|
19
|
-
//#region node_modules/.pnpm/nhb-toolbox@4.30.14/node_modules/nhb-toolbox/dist/esm/string/guards.js
|
|
20
|
-
const isPalindrome = (input) => {
|
|
21
|
-
const normalized = input.toLowerCase().replace(/[^a-z0-9]/g, "");
|
|
22
|
-
return normalized === reverseString(normalized);
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
//#endregion
|
|
26
19
|
//#region src/plugins/palindromePlugin.ts
|
|
27
20
|
/** * Plugin to inject `isPalindromeDate` method */
|
|
28
21
|
const palindromePlugin = ($Chronos) => {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import { Dt as TimeUnit, O as ChronosInput, s as ChronosPlugin } from "../types-zhhEJ8N7.cjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/relativeTimePlugin.d.ts
|
|
20
20
|
declare module 'chronos-date' {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import { Dt as TimeUnit, O as ChronosInput, s as ChronosPlugin } from "../types-CiFnGEL8.mjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/relativeTimePlugin.d.ts
|
|
20
20
|
declare module 'chronos-date' {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
18
18
|
const require_basic = require('../basic-DsQqC5nZ.cjs');
|
|
19
|
-
const
|
|
19
|
+
const require_convert_C8LsoKmI = require('../convert-C8LsoKmI-uBhT5hZQ.cjs');
|
|
20
20
|
|
|
21
21
|
//#region src/plugins/roundPlugin.ts
|
|
22
22
|
/** * Plugin to inject `round` method */
|
|
@@ -26,27 +26,27 @@ const roundPlugin = ($Chronos) => {
|
|
|
26
26
|
const date = new Date(internalDate(this));
|
|
27
27
|
switch (unit) {
|
|
28
28
|
case "millisecond": {
|
|
29
|
-
const rounded =
|
|
29
|
+
const rounded = require_convert_C8LsoKmI.roundToNearest(date.getMilliseconds(), nearest);
|
|
30
30
|
date.setMilliseconds(rounded);
|
|
31
31
|
break;
|
|
32
32
|
}
|
|
33
33
|
case "second": {
|
|
34
|
-
const rounded =
|
|
34
|
+
const rounded = require_convert_C8LsoKmI.roundToNearest(date.getSeconds() + date.getMilliseconds() / 1e3, nearest);
|
|
35
35
|
date.setSeconds(rounded, 0);
|
|
36
36
|
break;
|
|
37
37
|
}
|
|
38
38
|
case "minute": {
|
|
39
|
-
const rounded =
|
|
39
|
+
const rounded = require_convert_C8LsoKmI.roundToNearest(date.getMinutes() + date.getSeconds() / 60 + date.getMilliseconds() / 6e4, nearest);
|
|
40
40
|
date.setMinutes(rounded, 0, 0);
|
|
41
41
|
break;
|
|
42
42
|
}
|
|
43
43
|
case "hour": {
|
|
44
|
-
const rounded =
|
|
44
|
+
const rounded = require_convert_C8LsoKmI.roundToNearest(date.getHours() + date.getMinutes() / 60 + date.getSeconds() / 3600 + date.getMilliseconds() / 36e5, nearest);
|
|
45
45
|
date.setHours(rounded, 0, 0, 0);
|
|
46
46
|
break;
|
|
47
47
|
}
|
|
48
48
|
case "day": {
|
|
49
|
-
const rounded =
|
|
49
|
+
const rounded = require_convert_C8LsoKmI.roundToNearest(date.getDate() + (date.getHours() / 24 + date.getMinutes() / 1440 + date.getSeconds() / 86400 + date.getMilliseconds() / require_basic.MS_PER_DAY), nearest);
|
|
50
50
|
date.setDate(rounded);
|
|
51
51
|
date.setHours(0, 0, 0, 0);
|
|
52
52
|
break;
|
|
@@ -62,7 +62,7 @@ const roundPlugin = ($Chronos) => {
|
|
|
62
62
|
return withOrigin(new $Chronos(Math.abs(endOfWeek.getTime() - date.getTime()) < diffToStart ? endOfWeek : startOfWeek), "round", offset(this), this.timeZoneName, this.timeZoneId, this.$tzTracker);
|
|
63
63
|
}
|
|
64
64
|
case "month": {
|
|
65
|
-
const roundedMonth =
|
|
65
|
+
const roundedMonth = require_convert_C8LsoKmI.roundToNearest(date.getMonth() + date.getDate() / this.lastDateOfMonth, nearest);
|
|
66
66
|
date.setMonth(roundedMonth, 1);
|
|
67
67
|
date.setHours(0, 0, 0, 0);
|
|
68
68
|
break;
|
|
@@ -70,7 +70,7 @@ const roundPlugin = ($Chronos) => {
|
|
|
70
70
|
case "year": {
|
|
71
71
|
const dayOfYear = Math.floor((date.getTime() - new Date(date.getFullYear(), 0, 1).getTime()) / require_basic.MS_PER_DAY);
|
|
72
72
|
const totalDays = new Date(date.getFullYear(), 1, 29).getDate() === 29 ? 366 : 365;
|
|
73
|
-
const roundedYear =
|
|
73
|
+
const roundedYear = require_convert_C8LsoKmI.roundToNearest(date.getFullYear() + dayOfYear / totalDays, nearest);
|
|
74
74
|
date.setFullYear(roundedYear, 0, 1);
|
|
75
75
|
date.setHours(0, 0, 0, 0);
|
|
76
76
|
break;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import { Dt as TimeUnit, s as ChronosPlugin } from "../types-zhhEJ8N7.cjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/roundPlugin.d.ts
|
|
20
20
|
declare module 'chronos-date' {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import { Dt as TimeUnit, s as ChronosPlugin } from "../types-CiFnGEL8.mjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/roundPlugin.d.ts
|
|
20
20
|
declare module 'chronos-date' {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { s as INTERNALS, u as MS_PER_DAY } from "../basic-DqKyujoj.mjs";
|
|
18
|
-
import {
|
|
18
|
+
import { a as roundToNearest } from "../convert-C8LsoKmI-Blf3eLS6.mjs";
|
|
19
19
|
|
|
20
20
|
//#region src/plugins/roundPlugin.ts
|
|
21
21
|
/** * Plugin to inject `round` method */
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import { h as SeasonOptions, s as ChronosPlugin } from "../types-zhhEJ8N7.cjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/seasonPlugin.d.ts
|
|
20
20
|
declare module 'chronos-date' {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import { h as SeasonOptions, s as ChronosPlugin } from "../types-CiFnGEL8.mjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/seasonPlugin.d.ts
|
|
20
20
|
declare module 'chronos-date' {
|
|
@@ -18,8 +18,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
18
18
|
const require_basic = require('../basic-DsQqC5nZ.cjs');
|
|
19
19
|
const require_timezone = require('../timezone-BNnHFgki.cjs');
|
|
20
20
|
const require_guards = require('../guards.cjs');
|
|
21
|
-
const require_helpers = require('../helpers-
|
|
22
|
-
const
|
|
21
|
+
const require_helpers = require('../helpers-BMDeRLjO.cjs');
|
|
22
|
+
const require_utils = require('../utils-S_aw0TeC.cjs');
|
|
23
23
|
|
|
24
24
|
//#region src/plugins/timeZonePlugin.ts
|
|
25
25
|
/** * Plugin to inject `timeZone` related methods */
|
|
@@ -116,7 +116,7 @@ const timeZonePlugin = ($Chronos) => {
|
|
|
116
116
|
}
|
|
117
117
|
const $zone = zone || offset;
|
|
118
118
|
const tzName = _getTimeZoneName($zone, $Date(this)) || offset;
|
|
119
|
-
const relativeOffset =
|
|
119
|
+
const relativeOffset = require_utils.extractMinutesFromUTC(offset) - this.getTimeZoneOffsetMinutes();
|
|
120
120
|
return withOrigin(new $Chronos(new Date($Date(this).getTime() + relativeOffset * 60 * 1e3)), `timeZone`, offset, tzName, tzId, $zone);
|
|
121
121
|
};
|
|
122
122
|
$Chronos.prototype.getTimeZoneName = function(utc) {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import { At as TimeZone, Cn as LooseLiteral, Ft as TimeZoneName, Pt as TimeZoneIdentifier, s as ChronosPlugin, zt as UTCOffset } from "../types-zhhEJ8N7.cjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/timeZonePlugin.d.ts
|
|
20
20
|
declare module 'chronos-date' {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import { At as TimeZone, Cn as LooseLiteral, Ft as TimeZoneName, Pt as TimeZoneIdentifier, s as ChronosPlugin, zt as UTCOffset } from "../types-CiFnGEL8.mjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/timeZonePlugin.d.ts
|
|
20
20
|
declare module 'chronos-date' {
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
import { s as INTERNALS } from "../basic-DqKyujoj.mjs";
|
|
18
18
|
import { n as NATIVE_TZ_IDS, o as TIME_ZONE_LABELS, r as TIME_ZONES } from "../timezone-Db2CeL32.mjs";
|
|
19
19
|
import { isValidUTCOffset } from "../guards.mjs";
|
|
20
|
-
import { p as _resolveNativeTzName, s as _gmtToUtcOffset } from "../helpers-
|
|
21
|
-
import { r as extractMinutesFromUTC } from "../
|
|
20
|
+
import { p as _resolveNativeTzName, s as _gmtToUtcOffset } from "../helpers-t49KkxOE.mjs";
|
|
21
|
+
import { r as extractMinutesFromUTC } from "../utils-DBy7S7hH.mjs";
|
|
22
22
|
|
|
23
23
|
//#region src/plugins/timeZonePlugin.ts
|
|
24
24
|
/** * Plugin to inject `timeZone` related methods */
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
18
18
|
const require_basic = require('../basic-DsQqC5nZ.cjs');
|
|
19
|
-
const require_helpers = require('../helpers-
|
|
19
|
+
const require_helpers = require('../helpers-BMDeRLjO.cjs');
|
|
20
20
|
|
|
21
21
|
//#region src/plugins/zodiacPlugin.ts
|
|
22
22
|
/** * Plugin to inject `zodiac` related methods */
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import { C as ZodiacSign, b as ZodiacMetaOptions, s as ChronosPlugin, x as ZodiacOptions, y as ZodiacMeta } from "../types-zhhEJ8N7.cjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/zodiacPlugin.d.ts
|
|
20
20
|
declare module 'chronos-date' {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import { C as ZodiacSign, b as ZodiacMetaOptions, s as ChronosPlugin, x as ZodiacOptions, y as ZodiacMeta } from "../types-CiFnGEL8.mjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/zodiacPlugin.d.ts
|
|
20
20
|
declare module 'chronos-date' {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { m as ZODIAC_PRESETS } from "../basic-DqKyujoj.mjs";
|
|
18
|
-
import { f as _padZero } from "../helpers-
|
|
18
|
+
import { f as _padZero } from "../helpers-t49KkxOE.mjs";
|
|
19
19
|
|
|
20
20
|
//#region src/plugins/zodiacPlugin.ts
|
|
21
21
|
/** * Plugin to inject `zodiac` related methods */
|