chronos-date 1.1.1 → 1.1.2
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/dist/guards.d.cts +1 -1
- package/dist/guards.d.mts +1 -1
- package/dist/index.cjs +13 -13
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +13 -13
- package/dist/plugins/banglaPlugin.d.cts +1 -1
- package/dist/plugins/banglaPlugin.d.mts +1 -1
- package/dist/plugins/businessPlugin.d.cts +1 -1
- package/dist/plugins/businessPlugin.d.mts +1 -1
- package/dist/plugins/dateRangePlugin.d.cts +3 -3
- package/dist/plugins/dateRangePlugin.d.mts +3 -3
- package/dist/plugins/dayPartPlugin.d.cts +1 -1
- package/dist/plugins/dayPartPlugin.d.mts +1 -1
- package/dist/plugins/durationPlugin.d.cts +1 -1
- package/dist/plugins/durationPlugin.d.mts +1 -1
- package/dist/plugins/fromNowPlugin.d.cts +1 -1
- package/dist/plugins/fromNowPlugin.d.mts +1 -1
- package/dist/plugins/greetingPlugin.d.cts +2 -2
- package/dist/plugins/greetingPlugin.d.mts +2 -2
- package/dist/plugins/palindromePlugin.d.cts +1 -1
- package/dist/plugins/palindromePlugin.d.mts +1 -1
- package/dist/plugins/relativeTimePlugin.d.cts +1 -1
- package/dist/plugins/relativeTimePlugin.d.mts +1 -1
- package/dist/plugins/roundPlugin.cjs +1 -1
- 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 +2 -2
- package/dist/plugins/seasonPlugin.d.mts +2 -2
- package/dist/plugins/timeZonePlugin.d.cts +1 -1
- package/dist/plugins/timeZonePlugin.d.mts +1 -1
- package/dist/plugins/zodiacPlugin.d.cts +2 -2
- package/dist/plugins/zodiacPlugin.d.mts +2 -2
- package/dist/{types-Cb4gxrgJ.d.mts → types-Bs_rfkka.d.mts} +17 -17
- package/dist/{types-CdmsXbU_.d.cts → types-CaVuY1_4.d.cts} +17 -17
- package/dist/types.d.cts +1 -1
- package/dist/types.d.mts +1 -1
- package/dist/utils.d.cts +1 -1
- package/dist/utils.d.mts +1 -1
- package/package.json +1 -1
package/dist/guards.d.cts
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { Dt as TimeWithUnit, Lt as UTCOffset, Sn as Numeric, X as $TimeZoneIdentifier, jt as TimeZoneIdNative, ot as DateLike, rt as ClockTime } from "./types-
|
|
17
|
+
import { Dt as TimeWithUnit, Lt as UTCOffset, Sn as Numeric, X as $TimeZoneIdentifier, jt as TimeZoneIdNative, ot as DateLike, rt as ClockTime } from "./types-CaVuY1_4.cjs";
|
|
18
18
|
|
|
19
19
|
//#region src/guards.d.ts
|
|
20
20
|
/**
|
package/dist/guards.d.mts
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { Dt as TimeWithUnit, Lt as UTCOffset, Sn as Numeric, X as $TimeZoneIdentifier, jt as TimeZoneIdNative, ot as DateLike, rt as ClockTime } from "./types-
|
|
17
|
+
import { Dt as TimeWithUnit, Lt as UTCOffset, Sn as Numeric, X as $TimeZoneIdentifier, jt as TimeZoneIdNative, ot as DateLike, rt as ClockTime } from "./types-Bs_rfkka.mjs";
|
|
18
18
|
|
|
19
19
|
//#region src/guards.d.ts
|
|
20
20
|
/**
|
package/dist/index.cjs
CHANGED
|
@@ -216,24 +216,24 @@ var Chronos = class Chronos {
|
|
|
216
216
|
* Represents the current timezone name (e.g., `"Bangladesh Standard Time"`), or falls back to the corresponding timezone identifier (e.g., `"Asia/Dhaka"`) if no name can be resolved.
|
|
217
217
|
*
|
|
218
218
|
* @remarks
|
|
219
|
-
* - Invoking the {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
219
|
+
* - Invoking the {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/conversion#timezone timeZone} method sets the timezone name that corresponds to the specified UTC offset, or the UTC offset itself if no name exists. For more details on this behavior, see {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/names#gettimezonename getTimeZoneName}.
|
|
220
220
|
* - To retrieve the local system's native timezone name (or its identifier if the name is unavailable), use the {@link $getNativeTimeZoneName} instance method.
|
|
221
221
|
*/
|
|
222
222
|
timeZoneName;
|
|
223
223
|
/**
|
|
224
224
|
* Represents the current timezone context, which can be a single identifier, an array of equivalent identifiers, or a UTC offset.
|
|
225
225
|
*
|
|
226
|
-
* - **{@link $TimeZoneIdentifier}** — e.g., `"Asia/Dhaka"`. Returned when the {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
226
|
+
* - **{@link $TimeZoneIdentifier}** — e.g., `"Asia/Dhaka"`. Returned when the {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/conversion#timezone timeZone} method has not been invoked. It is default behavior.
|
|
227
227
|
* - **Array of {@link $TimeZoneIdentifier}** — e.g., `[ 'Asia/Calcutta', 'Asia/Colombo' ]`, used when multiple timezones share the same UTC offset such as `"UTC+05:30"`.
|
|
228
228
|
* - **{@link UTCOffset}** — e.g., `"UTC+06:45"` or `"UTC+02:15"`, returned when no named timezone corresponds to a given offset.
|
|
229
229
|
*
|
|
230
230
|
* @remarks
|
|
231
|
-
* - By default, when {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
231
|
+
* - By default, when {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/conversion#timezone timeZone} is not applied, a single {@link $TimeZoneIdentifier} string is provided.
|
|
232
232
|
* - When applied, it may instead return a single identifier string, an array of equivalent identifiers or a UTC offset string.
|
|
233
233
|
* - To retrieve the local system's native timezone identifier, use the {@link $getNativeTimeZoneId} instance method.
|
|
234
234
|
*/
|
|
235
235
|
timeZoneId;
|
|
236
|
-
/** Tracker to identify the instance created by {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
236
|
+
/** Tracker to identify the instance created by {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/conversion#timezone timeZone} method */
|
|
237
237
|
$tzTracker;
|
|
238
238
|
/**
|
|
239
239
|
* * Creates a new immutable `Chronos` instance.
|
|
@@ -310,7 +310,7 @@ var Chronos = class Chronos {
|
|
|
310
310
|
*
|
|
311
311
|
* @remarks
|
|
312
312
|
* - This method always reflects the local machine's time zone if `tzId` is parameter is omitted.
|
|
313
|
-
* - {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
313
|
+
* - {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/conversion#timezone timeZone}, {@link utc}, or {@link toUTC} methods have no effects on this method.
|
|
314
314
|
* - To access the time zone name of a modified or converted instance, use the {@link timeZoneName} public property instead.
|
|
315
315
|
*
|
|
316
316
|
* @param tzId Optional time zone identifier to get time zone name for that specific identifier if available.
|
|
@@ -326,7 +326,7 @@ var Chronos = class Chronos {
|
|
|
326
326
|
*
|
|
327
327
|
* @remarks
|
|
328
328
|
* - This method always returns the identifier of the local machine's time zone.
|
|
329
|
-
* - {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
329
|
+
* - {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/conversion#timezone timeZone}, {@link utc}, or {@link toUTC} methods have no effects on this method.
|
|
330
330
|
* - To obtain the identifier(s) of a modified or converted instance, use the {@link timeZoneId} public property instead.
|
|
331
331
|
*
|
|
332
332
|
* @returns The local system's IANA time zone identifier.
|
|
@@ -355,7 +355,7 @@ var Chronos = class Chronos {
|
|
|
355
355
|
* @param offset Optional UTC offset in `UTC±HH:mm` format.
|
|
356
356
|
* @param tzName Optional time zone name to set.
|
|
357
357
|
* @param tzId Optional time zone identifier(s) to set.
|
|
358
|
-
* @param tzTracker Optional tracker to identify the instance created by {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
358
|
+
* @param tzTracker Optional tracker to identify the instance created by {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/conversion#timezone timeZone} method.
|
|
359
359
|
* @returns The `Chronos` instance with the specified origin and other properties.
|
|
360
360
|
*/
|
|
361
361
|
#withOrigin(origin, offset, tzName, tzId, tzTracker) {
|
|
@@ -516,7 +516,7 @@ var Chronos = class Chronos {
|
|
|
516
516
|
*
|
|
517
517
|
* - Supported format tokens include: `YYYY`, `YY`, `mmmm`, `mmm`, `MM`, `M`, `DD`, `D`, `dd`, `ddd`, `Do`, `HH`, `H`, `hh`, `h`, `mm`, `m`, `ss`, `s`, `ms`, `mss`, `a`, `A`, `ZZ` and `Z`.
|
|
518
518
|
* - *Any token not wrapped in brackets will be parsed and replaced with its corresponding date component.*
|
|
519
|
-
* - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
519
|
+
* - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/format#format-tokens format tokens} for details.
|
|
520
520
|
*
|
|
521
521
|
* @param useUTC - Optional boolean to format the date using UTC time.
|
|
522
522
|
* When `true`, it behaves like `formatUTC()` and outputs time based on UTC offset. Defaults to `false`.
|
|
@@ -534,7 +534,7 @@ var Chronos = class Chronos {
|
|
|
534
534
|
*
|
|
535
535
|
* @param format - The desired format string. Defaults to `'dd, mmm DD, YYYY HH:mm:ss'`
|
|
536
536
|
* (e.g., `'Sun, Apr 06, 2025 16:11:55'`).
|
|
537
|
-
* - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
537
|
+
* - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/format#format-tokens format tokens} for details.
|
|
538
538
|
*
|
|
539
539
|
* @param useUTC - If `true`, formats the date in UTC (equivalent to `formatUTC()`).
|
|
540
540
|
* Defaults to `false` (local time).
|
|
@@ -553,7 +553,7 @@ var Chronos = class Chronos {
|
|
|
553
553
|
*
|
|
554
554
|
* - Supported format tokens include: `YYYY`, `YY`, `mmmm`, `mmm`, `MM`, `M`, `DD`, `D`, `dd`, `ddd`, `Do`, `HH`, `H`, `hh`, `h`, `mm`, `m`, `ss`, `s`, `ms`, `mss`, `a`, `A`, `ZZ` and `Z`.
|
|
555
555
|
* - *Any token not wrapped in brackets will be parsed and replaced with its corresponding date component.*
|
|
556
|
-
* - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
556
|
+
* - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/format#format-tokens format tokens} for details.
|
|
557
557
|
*
|
|
558
558
|
* @returns Formatted date string in desired format (UTC time).
|
|
559
559
|
*/
|
|
@@ -1286,7 +1286,7 @@ var Chronos = class Chronos {
|
|
|
1286
1286
|
* @param options - Relative range (e.g., 7 days, 4 weeks) or date range (from/to) and output format.
|
|
1287
1287
|
* @returns Array of ISO date strings in the specified format.
|
|
1288
1288
|
*
|
|
1289
|
-
* - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
1289
|
+
* - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/statics#getdatesforday docs} for details.
|
|
1290
1290
|
*/
|
|
1291
1291
|
static getDatesForDay(day, options) {
|
|
1292
1292
|
let startDate = new Chronos(), endDate = startDate.addWeeks(4);
|
|
@@ -1442,7 +1442,7 @@ var Chronos = class Chronos {
|
|
|
1442
1442
|
* - To prevent this incorrect *linter error* in `React` projects, prefer using {@link register} method (alias `use` method).
|
|
1443
1443
|
*
|
|
1444
1444
|
* - **NOTE:** *Once a plugin is injected, all the registered methods for that plugin will be available for the whole project.*
|
|
1445
|
-
* - See {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
1445
|
+
* - See {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/plugins#-official-plugins full list of plugins and the methods they register}.
|
|
1446
1446
|
*/
|
|
1447
1447
|
static use(plugin) {
|
|
1448
1448
|
if (!Chronos.#plugins.has(plugin)) {
|
|
@@ -1460,7 +1460,7 @@ var Chronos = class Chronos {
|
|
|
1460
1460
|
* - To prevent this incorrect *linter error* in `React` projects, prefer using this (`register`) method over {@link use} method.
|
|
1461
1461
|
*
|
|
1462
1462
|
* - **NOTE:** *Once a plugin is injected, all the registered methods for that plugin will be available for the whole project.*
|
|
1463
|
-
* - See {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
1463
|
+
* - See {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/plugins#-official-plugins full list of plugins and the methods they register}.
|
|
1464
1464
|
*/
|
|
1465
1465
|
static register(plugin) {
|
|
1466
1466
|
Chronos.use(plugin);
|
package/dist/index.d.cts
CHANGED
package/dist/index.d.mts
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -215,24 +215,24 @@ var Chronos = class Chronos {
|
|
|
215
215
|
* Represents the current timezone name (e.g., `"Bangladesh Standard Time"`), or falls back to the corresponding timezone identifier (e.g., `"Asia/Dhaka"`) if no name can be resolved.
|
|
216
216
|
*
|
|
217
217
|
* @remarks
|
|
218
|
-
* - Invoking the {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
218
|
+
* - Invoking the {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/conversion#timezone timeZone} method sets the timezone name that corresponds to the specified UTC offset, or the UTC offset itself if no name exists. For more details on this behavior, see {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/names#gettimezonename getTimeZoneName}.
|
|
219
219
|
* - To retrieve the local system's native timezone name (or its identifier if the name is unavailable), use the {@link $getNativeTimeZoneName} instance method.
|
|
220
220
|
*/
|
|
221
221
|
timeZoneName;
|
|
222
222
|
/**
|
|
223
223
|
* Represents the current timezone context, which can be a single identifier, an array of equivalent identifiers, or a UTC offset.
|
|
224
224
|
*
|
|
225
|
-
* - **{@link $TimeZoneIdentifier}** — e.g., `"Asia/Dhaka"`. Returned when the {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
225
|
+
* - **{@link $TimeZoneIdentifier}** — e.g., `"Asia/Dhaka"`. Returned when the {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/conversion#timezone timeZone} method has not been invoked. It is default behavior.
|
|
226
226
|
* - **Array of {@link $TimeZoneIdentifier}** — e.g., `[ 'Asia/Calcutta', 'Asia/Colombo' ]`, used when multiple timezones share the same UTC offset such as `"UTC+05:30"`.
|
|
227
227
|
* - **{@link UTCOffset}** — e.g., `"UTC+06:45"` or `"UTC+02:15"`, returned when no named timezone corresponds to a given offset.
|
|
228
228
|
*
|
|
229
229
|
* @remarks
|
|
230
|
-
* - By default, when {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
230
|
+
* - By default, when {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/conversion#timezone timeZone} is not applied, a single {@link $TimeZoneIdentifier} string is provided.
|
|
231
231
|
* - When applied, it may instead return a single identifier string, an array of equivalent identifiers or a UTC offset string.
|
|
232
232
|
* - To retrieve the local system's native timezone identifier, use the {@link $getNativeTimeZoneId} instance method.
|
|
233
233
|
*/
|
|
234
234
|
timeZoneId;
|
|
235
|
-
/** Tracker to identify the instance created by {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
235
|
+
/** Tracker to identify the instance created by {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/conversion#timezone timeZone} method */
|
|
236
236
|
$tzTracker;
|
|
237
237
|
/**
|
|
238
238
|
* * Creates a new immutable `Chronos` instance.
|
|
@@ -309,7 +309,7 @@ var Chronos = class Chronos {
|
|
|
309
309
|
*
|
|
310
310
|
* @remarks
|
|
311
311
|
* - This method always reflects the local machine's time zone if `tzId` is parameter is omitted.
|
|
312
|
-
* - {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
312
|
+
* - {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/conversion#timezone timeZone}, {@link utc}, or {@link toUTC} methods have no effects on this method.
|
|
313
313
|
* - To access the time zone name of a modified or converted instance, use the {@link timeZoneName} public property instead.
|
|
314
314
|
*
|
|
315
315
|
* @param tzId Optional time zone identifier to get time zone name for that specific identifier if available.
|
|
@@ -325,7 +325,7 @@ var Chronos = class Chronos {
|
|
|
325
325
|
*
|
|
326
326
|
* @remarks
|
|
327
327
|
* - This method always returns the identifier of the local machine's time zone.
|
|
328
|
-
* - {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
328
|
+
* - {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/conversion#timezone timeZone}, {@link utc}, or {@link toUTC} methods have no effects on this method.
|
|
329
329
|
* - To obtain the identifier(s) of a modified or converted instance, use the {@link timeZoneId} public property instead.
|
|
330
330
|
*
|
|
331
331
|
* @returns The local system's IANA time zone identifier.
|
|
@@ -354,7 +354,7 @@ var Chronos = class Chronos {
|
|
|
354
354
|
* @param offset Optional UTC offset in `UTC±HH:mm` format.
|
|
355
355
|
* @param tzName Optional time zone name to set.
|
|
356
356
|
* @param tzId Optional time zone identifier(s) to set.
|
|
357
|
-
* @param tzTracker Optional tracker to identify the instance created by {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
357
|
+
* @param tzTracker Optional tracker to identify the instance created by {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/conversion#timezone timeZone} method.
|
|
358
358
|
* @returns The `Chronos` instance with the specified origin and other properties.
|
|
359
359
|
*/
|
|
360
360
|
#withOrigin(origin, offset, tzName, tzId, tzTracker) {
|
|
@@ -515,7 +515,7 @@ var Chronos = class Chronos {
|
|
|
515
515
|
*
|
|
516
516
|
* - Supported format tokens include: `YYYY`, `YY`, `mmmm`, `mmm`, `MM`, `M`, `DD`, `D`, `dd`, `ddd`, `Do`, `HH`, `H`, `hh`, `h`, `mm`, `m`, `ss`, `s`, `ms`, `mss`, `a`, `A`, `ZZ` and `Z`.
|
|
517
517
|
* - *Any token not wrapped in brackets will be parsed and replaced with its corresponding date component.*
|
|
518
|
-
* - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
518
|
+
* - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/format#format-tokens format tokens} for details.
|
|
519
519
|
*
|
|
520
520
|
* @param useUTC - Optional boolean to format the date using UTC time.
|
|
521
521
|
* When `true`, it behaves like `formatUTC()` and outputs time based on UTC offset. Defaults to `false`.
|
|
@@ -533,7 +533,7 @@ var Chronos = class Chronos {
|
|
|
533
533
|
*
|
|
534
534
|
* @param format - The desired format string. Defaults to `'dd, mmm DD, YYYY HH:mm:ss'`
|
|
535
535
|
* (e.g., `'Sun, Apr 06, 2025 16:11:55'`).
|
|
536
|
-
* - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
536
|
+
* - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/format#format-tokens format tokens} for details.
|
|
537
537
|
*
|
|
538
538
|
* @param useUTC - If `true`, formats the date in UTC (equivalent to `formatUTC()`).
|
|
539
539
|
* Defaults to `false` (local time).
|
|
@@ -552,7 +552,7 @@ var Chronos = class Chronos {
|
|
|
552
552
|
*
|
|
553
553
|
* - Supported format tokens include: `YYYY`, `YY`, `mmmm`, `mmm`, `MM`, `M`, `DD`, `D`, `dd`, `ddd`, `Do`, `HH`, `H`, `hh`, `h`, `mm`, `m`, `ss`, `s`, `ms`, `mss`, `a`, `A`, `ZZ` and `Z`.
|
|
554
554
|
* - *Any token not wrapped in brackets will be parsed and replaced with its corresponding date component.*
|
|
555
|
-
* - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
555
|
+
* - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/format#format-tokens format tokens} for details.
|
|
556
556
|
*
|
|
557
557
|
* @returns Formatted date string in desired format (UTC time).
|
|
558
558
|
*/
|
|
@@ -1285,7 +1285,7 @@ var Chronos = class Chronos {
|
|
|
1285
1285
|
* @param options - Relative range (e.g., 7 days, 4 weeks) or date range (from/to) and output format.
|
|
1286
1286
|
* @returns Array of ISO date strings in the specified format.
|
|
1287
1287
|
*
|
|
1288
|
-
* - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
1288
|
+
* - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/statics#getdatesforday docs} for details.
|
|
1289
1289
|
*/
|
|
1290
1290
|
static getDatesForDay(day, options) {
|
|
1291
1291
|
let startDate = new Chronos(), endDate = startDate.addWeeks(4);
|
|
@@ -1441,7 +1441,7 @@ var Chronos = class Chronos {
|
|
|
1441
1441
|
* - To prevent this incorrect *linter error* in `React` projects, prefer using {@link register} method (alias `use` method).
|
|
1442
1442
|
*
|
|
1443
1443
|
* - **NOTE:** *Once a plugin is injected, all the registered methods for that plugin will be available for the whole project.*
|
|
1444
|
-
* - See {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
1444
|
+
* - See {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/plugins#-official-plugins full list of plugins and the methods they register}.
|
|
1445
1445
|
*/
|
|
1446
1446
|
static use(plugin) {
|
|
1447
1447
|
if (!Chronos.#plugins.has(plugin)) {
|
|
@@ -1459,7 +1459,7 @@ var Chronos = class Chronos {
|
|
|
1459
1459
|
* - To prevent this incorrect *linter error* in `React` projects, prefer using this (`register`) method over {@link use} method.
|
|
1460
1460
|
*
|
|
1461
1461
|
* - **NOTE:** *Once a plugin is injected, all the registered methods for that plugin will be available for the whole project.*
|
|
1462
|
-
* - See {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
1462
|
+
* - See {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/plugins#-official-plugins full list of plugins and the methods they register}.
|
|
1463
1463
|
*/
|
|
1464
1464
|
static register(plugin) {
|
|
1465
1465
|
Chronos.use(plugin);
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { $t as BanglaDayName, C as $Chronos, Ht as $BanglaMonth, Kt as $BnEn, Qt as BanglaDateOptions, Ut as $BanglaMonthDate, Wt as $BanglaYear, Zt as BanglaDateObject, gn as StrictFormat, in as BnCalendarConfig, nn as BanglaSeasonName, tn as BanglaMonthName } from "../types-
|
|
17
|
+
import { $t as BanglaDayName, C as $Chronos, Ht as $BanglaMonth, Kt as $BnEn, Qt as BanglaDateOptions, Ut as $BanglaMonthDate, Wt as $BanglaYear, Zt as BanglaDateObject, gn as StrictFormat, in as BnCalendarConfig, nn as BanglaSeasonName, tn as BanglaMonthName } from "../types-CaVuY1_4.cjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/banglaPlugin.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 BanglaDayName, C as $Chronos, Ht as $BanglaMonth, Kt as $BnEn, Qt as BanglaDateOptions, Ut as $BanglaMonthDate, Wt as $BanglaYear, Zt as BanglaDateObject, gn as StrictFormat, in as BnCalendarConfig, nn as BanglaSeasonName, tn as BanglaMonthName } from "../types-
|
|
17
|
+
import { $t as BanglaDayName, C as $Chronos, Ht as $BanglaMonth, Kt as $BnEn, Qt as BanglaDateOptions, Ut as $BanglaMonthDate, Wt as $BanglaYear, Zt as BanglaDateObject, gn as StrictFormat, in as BnCalendarConfig, nn as BanglaSeasonName, tn as BanglaMonthName } from "../types-Bs_rfkka.mjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/banglaPlugin.d.ts
|
|
20
20
|
declare module 'chronos-date' {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { C as $Chronos, Cn as Enumerate, D as ChronosInput, En as RangeTuple, a as BusinessOptionsWeekends, i as BusinessOptionsBasic, r as AcademicYear, wn as NumberRange, wt as Quarter } from "../types-
|
|
17
|
+
import { C as $Chronos, Cn as Enumerate, D as ChronosInput, En as RangeTuple, a as BusinessOptionsWeekends, i as BusinessOptionsBasic, r as AcademicYear, wn as NumberRange, wt as Quarter } from "../types-CaVuY1_4.cjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/businessPlugin.d.ts
|
|
20
20
|
declare module 'chronos-date' {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { C as $Chronos, Cn as Enumerate, D as ChronosInput, En as RangeTuple, a as BusinessOptionsWeekends, i as BusinessOptionsBasic, r as AcademicYear, wn as NumberRange, wt as Quarter } from "../types-
|
|
17
|
+
import { C as $Chronos, Cn as Enumerate, D as ChronosInput, En as RangeTuple, a as BusinessOptionsWeekends, i as BusinessOptionsBasic, r as AcademicYear, wn as NumberRange, wt as Quarter } from "../types-Bs_rfkka.mjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/businessPlugin.d.ts
|
|
20
20
|
declare module 'chronos-date' {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { C as $Chronos, I as RangeWithDates, L as RelativeDateRange, mt as ISODateTimeString } from "../types-
|
|
17
|
+
import { C as $Chronos, I as RangeWithDates, L as RelativeDateRange, mt as ISODateTimeString } from "../types-CaVuY1_4.cjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/dateRangePlugin.d.ts
|
|
20
20
|
declare module 'chronos-date' {
|
|
@@ -29,7 +29,7 @@ declare module 'chronos-date' {
|
|
|
29
29
|
* @param options - Configuration for the date range. Accepts a fixed (`RangeWithDates`) format.
|
|
30
30
|
* @returns Array of ISO date-time strings in either local or UTC format, excluding any skipped weekdays if specified.
|
|
31
31
|
*
|
|
32
|
-
* - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
32
|
+
* - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/calculation#getdatesinrange docs} for details.
|
|
33
33
|
*
|
|
34
34
|
* @remarks
|
|
35
35
|
* - When using `Chronos` instances for `from` and/or `to`, ensure both are created in the **same time zone** to avoid mismatched boundaries.
|
|
@@ -61,7 +61,7 @@ declare module 'chronos-date' {
|
|
|
61
61
|
* @param options - Configuration for the date range. Accepts a relative (`RelativeDateRange`) format.
|
|
62
62
|
* @returns Array of ISO date-time strings in either local or UTC format, excluding any skipped weekdays if specified.
|
|
63
63
|
*
|
|
64
|
-
* - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
64
|
+
* - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/calculation#getdatesinrange docs} for details.
|
|
65
65
|
*
|
|
66
66
|
* @example
|
|
67
67
|
* // Using a relative date range with skipDays:
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { C as $Chronos, I as RangeWithDates, L as RelativeDateRange, mt as ISODateTimeString } from "../types-
|
|
17
|
+
import { C as $Chronos, I as RangeWithDates, L as RelativeDateRange, mt as ISODateTimeString } from "../types-Bs_rfkka.mjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/dateRangePlugin.d.ts
|
|
20
20
|
declare module 'chronos-date' {
|
|
@@ -29,7 +29,7 @@ declare module 'chronos-date' {
|
|
|
29
29
|
* @param options - Configuration for the date range. Accepts a fixed (`RangeWithDates`) format.
|
|
30
30
|
* @returns Array of ISO date-time strings in either local or UTC format, excluding any skipped weekdays if specified.
|
|
31
31
|
*
|
|
32
|
-
* - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
32
|
+
* - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/calculation#getdatesinrange docs} for details.
|
|
33
33
|
*
|
|
34
34
|
* @remarks
|
|
35
35
|
* - When using `Chronos` instances for `from` and/or `to`, ensure both are created in the **same time zone** to avoid mismatched boundaries.
|
|
@@ -61,7 +61,7 @@ declare module 'chronos-date' {
|
|
|
61
61
|
* @param options - Configuration for the date range. Accepts a relative (`RelativeDateRange`) format.
|
|
62
62
|
* @returns Array of ISO date-time strings in either local or UTC format, excluding any skipped weekdays if specified.
|
|
63
63
|
*
|
|
64
|
-
* - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
64
|
+
* - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/calculation#getdatesinrange docs} for details.
|
|
65
65
|
*
|
|
66
66
|
* @example
|
|
67
67
|
* // Using a relative date range with skipDays:
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { C as $Chronos, c as DayPart, l as DayPartConfig } from "../types-
|
|
17
|
+
import { C as $Chronos, c as DayPart, l as DayPartConfig } from "../types-CaVuY1_4.cjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/dayPartPlugin.d.ts
|
|
20
20
|
declare module 'chronos-date' {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { C as $Chronos, c as DayPart, l as DayPartConfig } from "../types-
|
|
17
|
+
import { C as $Chronos, c as DayPart, l as DayPartConfig } from "../types-Bs_rfkka.mjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/dayPartPlugin.d.ts
|
|
20
20
|
declare module 'chronos-date' {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { C as $Chronos, D as ChronosInput, d as DurationOptions, g as TimeDuration } from "../types-
|
|
17
|
+
import { C as $Chronos, D as ChronosInput, d as DurationOptions, g as TimeDuration } from "../types-CaVuY1_4.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 { C as $Chronos, D as ChronosInput, d as DurationOptions, g as TimeDuration } from "../types-
|
|
17
|
+
import { C as $Chronos, D as ChronosInput, d as DurationOptions, g as TimeDuration } from "../types-Bs_rfkka.mjs";
|
|
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 { C as $Chronos, D as ChronosInput, ut as FromNowUnit } from "../types-
|
|
17
|
+
import { C as $Chronos, D as ChronosInput, ut as FromNowUnit } from "../types-CaVuY1_4.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 { C as $Chronos, D as ChronosInput, ut as FromNowUnit } from "../types-
|
|
17
|
+
import { C as $Chronos, D as ChronosInput, ut as FromNowUnit } from "../types-Bs_rfkka.mjs";
|
|
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 { C as $Chronos, dt as GreetingConfigs } from "../types-
|
|
17
|
+
import { C as $Chronos, dt as GreetingConfigs } from "../types-CaVuY1_4.cjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/greetingPlugin.d.ts
|
|
20
20
|
declare module 'chronos-date' {
|
|
@@ -31,7 +31,7 @@ declare module 'chronos-date' {
|
|
|
31
31
|
/**
|
|
32
32
|
* @instance Returns a greeting message based on current instance of `Chronos` time or provided time in the `configs`.
|
|
33
33
|
*
|
|
34
|
-
* @remarks This method is an alias for {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
34
|
+
* @remarks This method is an alias for {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/format#getgreeting getGreeting} method.
|
|
35
35
|
*
|
|
36
36
|
* @param configs - Configuration options for greeting times and messages.
|
|
37
37
|
* @returns The appropriate greeting message.
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { C as $Chronos, dt as GreetingConfigs } from "../types-
|
|
17
|
+
import { C as $Chronos, dt as GreetingConfigs } from "../types-Bs_rfkka.mjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/greetingPlugin.d.ts
|
|
20
20
|
declare module 'chronos-date' {
|
|
@@ -31,7 +31,7 @@ declare module 'chronos-date' {
|
|
|
31
31
|
/**
|
|
32
32
|
* @instance Returns a greeting message based on current instance of `Chronos` time or provided time in the `configs`.
|
|
33
33
|
*
|
|
34
|
-
* @remarks This method is an alias for {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
34
|
+
* @remarks This method is an alias for {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/format#getgreeting getGreeting} method.
|
|
35
35
|
*
|
|
36
36
|
* @param configs - Configuration options for greeting times and messages.
|
|
37
37
|
* @returns The appropriate greeting message.
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { C as $Chronos, D as ChronosInput, Tt as TimeUnit } from "../types-
|
|
17
|
+
import { C as $Chronos, D as ChronosInput, Tt as TimeUnit } from "../types-CaVuY1_4.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 { C as $Chronos, D as ChronosInput, Tt as TimeUnit } from "../types-
|
|
17
|
+
import { C as $Chronos, D as ChronosInput, Tt as TimeUnit } from "../types-Bs_rfkka.mjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/relativeTimePlugin.d.ts
|
|
20
20
|
declare module 'chronos-date' {
|
|
@@ -59,7 +59,7 @@ const roundPlugin = ($Chronos) => {
|
|
|
59
59
|
const endOfWeek = new Date(startOfWeek);
|
|
60
60
|
endOfWeek.setDate(endOfWeek.getDate() + 7);
|
|
61
61
|
const diffToStart = Math.abs(date.getTime() - startOfWeek.getTime());
|
|
62
|
-
return withOrigin(new $Chronos(Math.abs(endOfWeek.getTime() - date.getTime()) < diffToStart ? endOfWeek : startOfWeek), "round");
|
|
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
65
|
const roundedMonth = require_utilities.roundToNearest(date.getMonth() + date.getDate() / this.lastDateOfMonth, nearest);
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { C as $Chronos, Tt as TimeUnit } from "../types-
|
|
17
|
+
import { C as $Chronos, Tt as TimeUnit } from "../types-CaVuY1_4.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 { C as $Chronos, Tt as TimeUnit } from "../types-
|
|
17
|
+
import { C as $Chronos, Tt as TimeUnit } from "../types-Bs_rfkka.mjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/roundPlugin.d.ts
|
|
20
20
|
declare module 'chronos-date' {
|
|
@@ -58,7 +58,7 @@ const roundPlugin = ($Chronos) => {
|
|
|
58
58
|
const endOfWeek = new Date(startOfWeek);
|
|
59
59
|
endOfWeek.setDate(endOfWeek.getDate() + 7);
|
|
60
60
|
const diffToStart = Math.abs(date.getTime() - startOfWeek.getTime());
|
|
61
|
-
return withOrigin(new $Chronos(Math.abs(endOfWeek.getTime() - date.getTime()) < diffToStart ? endOfWeek : startOfWeek), "round");
|
|
61
|
+
return withOrigin(new $Chronos(Math.abs(endOfWeek.getTime() - date.getTime()) < diffToStart ? endOfWeek : startOfWeek), "round", offset(this), this.timeZoneName, this.timeZoneId, this.$tzTracker);
|
|
62
62
|
}
|
|
63
63
|
case "month": {
|
|
64
64
|
const roundedMonth = roundToNearest(date.getMonth() + date.getDate() / this.lastDateOfMonth, nearest);
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { C as $Chronos, m as SeasonOptions } from "../types-
|
|
17
|
+
import { C as $Chronos, m as SeasonOptions } from "../types-CaVuY1_4.cjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/seasonPlugin.d.ts
|
|
20
20
|
declare module 'chronos-date' {
|
|
@@ -28,7 +28,7 @@ declare module 'chronos-date' {
|
|
|
28
28
|
/**
|
|
29
29
|
* @instance Returns the current season name based on optional season rules or presets.
|
|
30
30
|
*
|
|
31
|
-
* @remarks This method is an alias for {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
31
|
+
* @remarks This method is an alias for {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/names#season season} method.
|
|
32
32
|
*
|
|
33
33
|
* @param options Configuration with optional custom seasons or preset name.
|
|
34
34
|
* @returns The name of the season the current date falls under.
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { C as $Chronos, m as SeasonOptions } from "../types-
|
|
17
|
+
import { C as $Chronos, m as SeasonOptions } from "../types-Bs_rfkka.mjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/seasonPlugin.d.ts
|
|
20
20
|
declare module 'chronos-date' {
|
|
@@ -28,7 +28,7 @@ declare module 'chronos-date' {
|
|
|
28
28
|
/**
|
|
29
29
|
* @instance Returns the current season name based on optional season rules or presets.
|
|
30
30
|
*
|
|
31
|
-
* @remarks This method is an alias for {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
31
|
+
* @remarks This method is an alias for {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/names#season season} method.
|
|
32
32
|
*
|
|
33
33
|
* @param options Configuration with optional custom seasons or preset name.
|
|
34
34
|
* @returns The name of the season the current date falls under.
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { C as $Chronos, Lt as UTCOffset, Mt as TimeZoneIdentifier, Nt as TimeZoneName, Ot as TimeZone, Tn as LooseLiteral } from "../types-
|
|
17
|
+
import { C as $Chronos, Lt as UTCOffset, Mt as TimeZoneIdentifier, Nt as TimeZoneName, Ot as TimeZone, Tn as LooseLiteral } from "../types-CaVuY1_4.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 { C as $Chronos, Lt as UTCOffset, Mt as TimeZoneIdentifier, Nt as TimeZoneName, Ot as TimeZone, Tn as LooseLiteral } from "../types-
|
|
17
|
+
import { C as $Chronos, Lt as UTCOffset, Mt as TimeZoneIdentifier, Nt as TimeZoneName, Ot as TimeZone, Tn as LooseLiteral } from "../types-Bs_rfkka.mjs";
|
|
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 { C as $Chronos, S as ZodiacSign, b as ZodiacOptions, v as ZodiacMeta, y as ZodiacMetaOptions } from "../types-
|
|
17
|
+
import { C as $Chronos, S as ZodiacSign, b as ZodiacOptions, v as ZodiacMeta, y as ZodiacMetaOptions } from "../types-CaVuY1_4.cjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/zodiacPlugin.d.ts
|
|
20
20
|
declare module 'chronos-date' {
|
|
@@ -27,7 +27,7 @@ declare module 'chronos-date' {
|
|
|
27
27
|
getZodiacSign<Sign extends string = ZodiacSign>(options?: ZodiacOptions<Sign>): Sign;
|
|
28
28
|
/**
|
|
29
29
|
* @instance Returns the zodiac sign based on current date or `birthDate` option.
|
|
30
|
-
* @remarks This method is an alias for {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
30
|
+
* @remarks This method is an alias for {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/names#getzodiacsign getZodiacSign} method.
|
|
31
31
|
*
|
|
32
32
|
* @param options Optional config to choose preset or provide custom zodiac date ranges.
|
|
33
33
|
* @returns The matching zodiac sign from preset/custom list.
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { C as $Chronos, S as ZodiacSign, b as ZodiacOptions, v as ZodiacMeta, y as ZodiacMetaOptions } from "../types-
|
|
17
|
+
import { C as $Chronos, S as ZodiacSign, b as ZodiacOptions, v as ZodiacMeta, y as ZodiacMetaOptions } from "../types-Bs_rfkka.mjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/zodiacPlugin.d.ts
|
|
20
20
|
declare module 'chronos-date' {
|
|
@@ -27,7 +27,7 @@ declare module 'chronos-date' {
|
|
|
27
27
|
getZodiacSign<Sign extends string = ZodiacSign>(options?: ZodiacOptions<Sign>): Sign;
|
|
28
28
|
/**
|
|
29
29
|
* @instance Returns the zodiac sign based on current date or `birthDate` option.
|
|
30
|
-
* @remarks This method is an alias for {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
30
|
+
* @remarks This method is an alias for {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/names#getzodiacsign getZodiacSign} method.
|
|
31
31
|
*
|
|
32
32
|
* @param options Optional config to choose preset or provide custom zodiac date ranges.
|
|
33
33
|
* @returns The matching zodiac sign from preset/custom list.
|
|
@@ -554,24 +554,24 @@ declare class Chronos {
|
|
|
554
554
|
* Represents the current timezone name (e.g., `"Bangladesh Standard Time"`), or falls back to the corresponding timezone identifier (e.g., `"Asia/Dhaka"`) if no name can be resolved.
|
|
555
555
|
*
|
|
556
556
|
* @remarks
|
|
557
|
-
* - Invoking the {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
557
|
+
* - Invoking the {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/conversion#timezone timeZone} method sets the timezone name that corresponds to the specified UTC offset, or the UTC offset itself if no name exists. For more details on this behavior, see {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/names#gettimezonename getTimeZoneName}.
|
|
558
558
|
* - To retrieve the local system's native timezone name (or its identifier if the name is unavailable), use the {@link $getNativeTimeZoneName} instance method.
|
|
559
559
|
*/
|
|
560
560
|
timeZoneName: LooseLiteral<TimeZoneName>;
|
|
561
561
|
/**
|
|
562
562
|
* Represents the current timezone context, which can be a single identifier, an array of equivalent identifiers, or a UTC offset.
|
|
563
563
|
*
|
|
564
|
-
* - **{@link $TimeZoneIdentifier}** — e.g., `"Asia/Dhaka"`. Returned when the {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
564
|
+
* - **{@link $TimeZoneIdentifier}** — e.g., `"Asia/Dhaka"`. Returned when the {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/conversion#timezone timeZone} method has not been invoked. It is default behavior.
|
|
565
565
|
* - **Array of {@link $TimeZoneIdentifier}** — e.g., `[ 'Asia/Calcutta', 'Asia/Colombo' ]`, used when multiple timezones share the same UTC offset such as `"UTC+05:30"`.
|
|
566
566
|
* - **{@link UTCOffset}** — e.g., `"UTC+06:45"` or `"UTC+02:15"`, returned when no named timezone corresponds to a given offset.
|
|
567
567
|
*
|
|
568
568
|
* @remarks
|
|
569
|
-
* - By default, when {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
569
|
+
* - By default, when {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/conversion#timezone timeZone} is not applied, a single {@link $TimeZoneIdentifier} string is provided.
|
|
570
570
|
* - When applied, it may instead return a single identifier string, an array of equivalent identifiers or a UTC offset string.
|
|
571
571
|
* - To retrieve the local system's native timezone identifier, use the {@link $getNativeTimeZoneId} instance method.
|
|
572
572
|
*/
|
|
573
573
|
timeZoneId: TimeZoneId;
|
|
574
|
-
/** Tracker to identify the instance created by {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
574
|
+
/** Tracker to identify the instance created by {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/conversion#timezone timeZone} method */
|
|
575
575
|
protected $tzTracker?: $TimeZoneIdentifier | TimeZone | UTCOffset;
|
|
576
576
|
/**
|
|
577
577
|
* * Creates a new immutable `Chronos` instance from current date & time (UTC).
|
|
@@ -656,7 +656,7 @@ declare class Chronos {
|
|
|
656
656
|
*
|
|
657
657
|
* @remarks
|
|
658
658
|
* - This method always reflects the local machine's time zone if `tzId` is parameter is omitted.
|
|
659
|
-
* - {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
659
|
+
* - {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/conversion#timezone timeZone}, {@link utc}, or {@link toUTC} methods have no effects on this method.
|
|
660
660
|
* - To access the time zone name of a modified or converted instance, use the {@link timeZoneName} public property instead.
|
|
661
661
|
*
|
|
662
662
|
* @param tzId Optional time zone identifier to get time zone name for that specific identifier if available.
|
|
@@ -669,7 +669,7 @@ declare class Chronos {
|
|
|
669
669
|
*
|
|
670
670
|
* @remarks
|
|
671
671
|
* - This method always returns the identifier of the local machine's time zone.
|
|
672
|
-
* - {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
672
|
+
* - {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/conversion#timezone timeZone}, {@link utc}, or {@link toUTC} methods have no effects on this method.
|
|
673
673
|
* - To obtain the identifier(s) of a modified or converted instance, use the {@link timeZoneId} public property instead.
|
|
674
674
|
*
|
|
675
675
|
* @returns The local system's IANA time zone identifier.
|
|
@@ -737,7 +737,7 @@ declare class Chronos {
|
|
|
737
737
|
*
|
|
738
738
|
* - Supported format tokens include: `YYYY`, `YY`, `mmmm`, `mmm`, `MM`, `M`, `DD`, `D`, `dd`, `ddd`, `Do`, `HH`, `H`, `hh`, `h`, `mm`, `m`, `ss`, `s`, `ms`, `mss`, `a`, `A`, `ZZ` and `Z`.
|
|
739
739
|
* - *Any token not wrapped in brackets will be parsed and replaced with its corresponding date component.*
|
|
740
|
-
* - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
740
|
+
* - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/format#format-tokens format tokens} for details.
|
|
741
741
|
*
|
|
742
742
|
* @param useUTC - Optional boolean to format the date using UTC time.
|
|
743
743
|
* When `true`, it behaves like `formatUTC()` and outputs time based on UTC offset. Defaults to `false`.
|
|
@@ -753,7 +753,7 @@ declare class Chronos {
|
|
|
753
753
|
*
|
|
754
754
|
* @param format - The desired format string. Defaults to `'dd, mmm DD, YYYY HH:mm:ss'`
|
|
755
755
|
* (e.g., `'Sun, Apr 06, 2025 16:11:55'`).
|
|
756
|
-
* - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
756
|
+
* - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/format#format-tokens format tokens} for details.
|
|
757
757
|
*
|
|
758
758
|
* @param useUTC - If `true`, formats the date in UTC (equivalent to `formatUTC()`).
|
|
759
759
|
* Defaults to `false` (local time).
|
|
@@ -770,7 +770,7 @@ declare class Chronos {
|
|
|
770
770
|
*
|
|
771
771
|
* - Supported format tokens include: `YYYY`, `YY`, `mmmm`, `mmm`, `MM`, `M`, `DD`, `D`, `dd`, `ddd`, `Do`, `HH`, `H`, `hh`, `h`, `mm`, `m`, `ss`, `s`, `ms`, `mss`, `a`, `A`, `ZZ` and `Z`.
|
|
772
772
|
* - *Any token not wrapped in brackets will be parsed and replaced with its corresponding date component.*
|
|
773
|
-
* - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
773
|
+
* - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/format#format-tokens format tokens} for details.
|
|
774
774
|
*
|
|
775
775
|
* @returns Formatted date string in desired format (UTC time).
|
|
776
776
|
*/
|
|
@@ -1166,7 +1166,7 @@ declare class Chronos {
|
|
|
1166
1166
|
* @param options - Relative range (e.g., 7 days, 4 weeks) and output format (local with timezone or utc).
|
|
1167
1167
|
* @returns Array of ISO date strings in the specified format. Returns empty array if no matches in the time span.
|
|
1168
1168
|
*
|
|
1169
|
-
* - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
1169
|
+
* - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/statics#getdatesforday docs} for details.
|
|
1170
1170
|
*
|
|
1171
1171
|
* @example
|
|
1172
1172
|
* Chronos.getDatesForDay('Wednesday', { span: 7, unit: 'day' });
|
|
@@ -1188,7 +1188,7 @@ declare class Chronos {
|
|
|
1188
1188
|
* @param options - Date range (from/to, e.g. `'2025-06-30'`, ` new Date()`, `new Chronos()` etc.) and output format (local with timezone or utc).
|
|
1189
1189
|
* @returns Array of ISO date strings in the specified format. Returns empty array if no matches in the range.
|
|
1190
1190
|
*
|
|
1191
|
-
* - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
1191
|
+
* - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/statics#getdatesforday docs} for details.
|
|
1192
1192
|
*
|
|
1193
1193
|
* @remarks
|
|
1194
1194
|
* - When using `Chronos` instances for `from` and/or `to`, ensure both are created in the **same time zone** to avoid mismatched boundaries.
|
|
@@ -1294,7 +1294,7 @@ declare class Chronos {
|
|
|
1294
1294
|
* - To prevent this incorrect *linter error* in `React` projects, prefer using {@link register} method (alias `use` method).
|
|
1295
1295
|
*
|
|
1296
1296
|
* - **NOTE:** *Once a plugin is injected, all the registered methods for that plugin will be available for the whole project.*
|
|
1297
|
-
* - See {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
1297
|
+
* - See {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/plugins#-official-plugins full list of plugins and the methods they register}.
|
|
1298
1298
|
*/
|
|
1299
1299
|
static use(plugin: ChronosPlugin): void;
|
|
1300
1300
|
/**
|
|
@@ -1307,7 +1307,7 @@ declare class Chronos {
|
|
|
1307
1307
|
* - To prevent this incorrect *linter error* in `React` projects, prefer using this (`register`) method over {@link use} method.
|
|
1308
1308
|
*
|
|
1309
1309
|
* - **NOTE:** *Once a plugin is injected, all the registered methods for that plugin will be available for the whole project.*
|
|
1310
|
-
* - See {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
1310
|
+
* - See {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/plugins#-official-plugins full list of plugins and the methods they register}.
|
|
1311
1311
|
*/
|
|
1312
1312
|
static register(plugin: ChronosPlugin): void;
|
|
1313
1313
|
}
|
|
@@ -1405,7 +1405,7 @@ interface ChronosStatics {
|
|
|
1405
1405
|
* - To prevent this incorrect *linter error* in `React` projects, prefer using {@link register} method (alias `use` method).
|
|
1406
1406
|
*
|
|
1407
1407
|
* - **NOTE:** *Once a plugin is injected, all the registered methods for that plugin will be available for the whole project.*
|
|
1408
|
-
* - See {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
1408
|
+
* - See {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/plugins#-official-plugins full list of plugins and the methods they register}.
|
|
1409
1409
|
*/
|
|
1410
1410
|
use(plugin: ChronosPlugin): void;
|
|
1411
1411
|
/**
|
|
@@ -1418,7 +1418,7 @@ interface ChronosStatics {
|
|
|
1418
1418
|
* - To prevent this incorrect *linter error* in `React` projects, prefer using this (`register`) method over {@link use} method.
|
|
1419
1419
|
*
|
|
1420
1420
|
* - **NOTE:** *Once a plugin is injected, all the registered methods for that plugin will be available for the whole project.*
|
|
1421
|
-
* - See {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
1421
|
+
* - See {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/plugins#-official-plugins full list of plugins and the methods they register}.
|
|
1422
1422
|
*/
|
|
1423
1423
|
register(plugin: ChronosPlugin): void;
|
|
1424
1424
|
/**
|
|
@@ -1762,7 +1762,7 @@ interface FormatOptions {
|
|
|
1762
1762
|
*
|
|
1763
1763
|
* - Supported format tokens include: `YYYY`, `YY`, `mmmm`, `mmm`, `MM`, `M`, `DD`, `D`, `dd`, `ddd`, `Do`, `HH`, `H`, `hh`, `h`, `mm`, `m`, `ss`, `s`, `ms`, `mss`, `a`, `A`, and `ZZ`.
|
|
1764
1764
|
* - *Any token not wrapped in brackets will be parsed and replaced with its corresponding date component.*
|
|
1765
|
-
* - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
1765
|
+
* - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/format#format-tokens format tokens} for details.
|
|
1766
1766
|
*/
|
|
1767
1767
|
format?: string;
|
|
1768
1768
|
/** - Whether to use UTC time. Defaults to `false`. */
|
|
@@ -1849,7 +1849,7 @@ interface ChronosInternals {
|
|
|
1849
1849
|
* @param offset Optional UTC offset in `UTC±HH:mm` format.
|
|
1850
1850
|
* @param tzName Optional time zone name to set.
|
|
1851
1851
|
* @param tzId Optional time zone identifier(s) to set.
|
|
1852
|
-
* @param tzTracker Optional tracker to identify the instance created by {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
1852
|
+
* @param tzTracker Optional tracker to identify the instance created by {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/conversion#timezone timeZone} method.
|
|
1853
1853
|
* @returns The `Chronos` instance with the specified origin and other properties.
|
|
1854
1854
|
*/
|
|
1855
1855
|
withOrigin(instance: Chronos, method: PluginMethods, offset?: UTCOffset, tzName?: LooseLiteral<TimeZoneName>, tzId?: TimeZoneId, tzTracker?: $TimeZoneIdentifier | TimeZone | UTCOffset): Chronos;
|
|
@@ -554,24 +554,24 @@ declare class Chronos {
|
|
|
554
554
|
* Represents the current timezone name (e.g., `"Bangladesh Standard Time"`), or falls back to the corresponding timezone identifier (e.g., `"Asia/Dhaka"`) if no name can be resolved.
|
|
555
555
|
*
|
|
556
556
|
* @remarks
|
|
557
|
-
* - Invoking the {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
557
|
+
* - Invoking the {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/conversion#timezone timeZone} method sets the timezone name that corresponds to the specified UTC offset, or the UTC offset itself if no name exists. For more details on this behavior, see {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/names#gettimezonename getTimeZoneName}.
|
|
558
558
|
* - To retrieve the local system's native timezone name (or its identifier if the name is unavailable), use the {@link $getNativeTimeZoneName} instance method.
|
|
559
559
|
*/
|
|
560
560
|
timeZoneName: LooseLiteral<TimeZoneName>;
|
|
561
561
|
/**
|
|
562
562
|
* Represents the current timezone context, which can be a single identifier, an array of equivalent identifiers, or a UTC offset.
|
|
563
563
|
*
|
|
564
|
-
* - **{@link $TimeZoneIdentifier}** — e.g., `"Asia/Dhaka"`. Returned when the {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
564
|
+
* - **{@link $TimeZoneIdentifier}** — e.g., `"Asia/Dhaka"`. Returned when the {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/conversion#timezone timeZone} method has not been invoked. It is default behavior.
|
|
565
565
|
* - **Array of {@link $TimeZoneIdentifier}** — e.g., `[ 'Asia/Calcutta', 'Asia/Colombo' ]`, used when multiple timezones share the same UTC offset such as `"UTC+05:30"`.
|
|
566
566
|
* - **{@link UTCOffset}** — e.g., `"UTC+06:45"` or `"UTC+02:15"`, returned when no named timezone corresponds to a given offset.
|
|
567
567
|
*
|
|
568
568
|
* @remarks
|
|
569
|
-
* - By default, when {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
569
|
+
* - By default, when {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/conversion#timezone timeZone} is not applied, a single {@link $TimeZoneIdentifier} string is provided.
|
|
570
570
|
* - When applied, it may instead return a single identifier string, an array of equivalent identifiers or a UTC offset string.
|
|
571
571
|
* - To retrieve the local system's native timezone identifier, use the {@link $getNativeTimeZoneId} instance method.
|
|
572
572
|
*/
|
|
573
573
|
timeZoneId: TimeZoneId;
|
|
574
|
-
/** Tracker to identify the instance created by {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
574
|
+
/** Tracker to identify the instance created by {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/conversion#timezone timeZone} method */
|
|
575
575
|
protected $tzTracker?: $TimeZoneIdentifier | TimeZone | UTCOffset;
|
|
576
576
|
/**
|
|
577
577
|
* * Creates a new immutable `Chronos` instance from current date & time (UTC).
|
|
@@ -656,7 +656,7 @@ declare class Chronos {
|
|
|
656
656
|
*
|
|
657
657
|
* @remarks
|
|
658
658
|
* - This method always reflects the local machine's time zone if `tzId` is parameter is omitted.
|
|
659
|
-
* - {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
659
|
+
* - {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/conversion#timezone timeZone}, {@link utc}, or {@link toUTC} methods have no effects on this method.
|
|
660
660
|
* - To access the time zone name of a modified or converted instance, use the {@link timeZoneName} public property instead.
|
|
661
661
|
*
|
|
662
662
|
* @param tzId Optional time zone identifier to get time zone name for that specific identifier if available.
|
|
@@ -669,7 +669,7 @@ declare class Chronos {
|
|
|
669
669
|
*
|
|
670
670
|
* @remarks
|
|
671
671
|
* - This method always returns the identifier of the local machine's time zone.
|
|
672
|
-
* - {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
672
|
+
* - {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/conversion#timezone timeZone}, {@link utc}, or {@link toUTC} methods have no effects on this method.
|
|
673
673
|
* - To obtain the identifier(s) of a modified or converted instance, use the {@link timeZoneId} public property instead.
|
|
674
674
|
*
|
|
675
675
|
* @returns The local system's IANA time zone identifier.
|
|
@@ -737,7 +737,7 @@ declare class Chronos {
|
|
|
737
737
|
*
|
|
738
738
|
* - Supported format tokens include: `YYYY`, `YY`, `mmmm`, `mmm`, `MM`, `M`, `DD`, `D`, `dd`, `ddd`, `Do`, `HH`, `H`, `hh`, `h`, `mm`, `m`, `ss`, `s`, `ms`, `mss`, `a`, `A`, `ZZ` and `Z`.
|
|
739
739
|
* - *Any token not wrapped in brackets will be parsed and replaced with its corresponding date component.*
|
|
740
|
-
* - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
740
|
+
* - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/format#format-tokens format tokens} for details.
|
|
741
741
|
*
|
|
742
742
|
* @param useUTC - Optional boolean to format the date using UTC time.
|
|
743
743
|
* When `true`, it behaves like `formatUTC()` and outputs time based on UTC offset. Defaults to `false`.
|
|
@@ -753,7 +753,7 @@ declare class Chronos {
|
|
|
753
753
|
*
|
|
754
754
|
* @param format - The desired format string. Defaults to `'dd, mmm DD, YYYY HH:mm:ss'`
|
|
755
755
|
* (e.g., `'Sun, Apr 06, 2025 16:11:55'`).
|
|
756
|
-
* - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
756
|
+
* - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/format#format-tokens format tokens} for details.
|
|
757
757
|
*
|
|
758
758
|
* @param useUTC - If `true`, formats the date in UTC (equivalent to `formatUTC()`).
|
|
759
759
|
* Defaults to `false` (local time).
|
|
@@ -770,7 +770,7 @@ declare class Chronos {
|
|
|
770
770
|
*
|
|
771
771
|
* - Supported format tokens include: `YYYY`, `YY`, `mmmm`, `mmm`, `MM`, `M`, `DD`, `D`, `dd`, `ddd`, `Do`, `HH`, `H`, `hh`, `h`, `mm`, `m`, `ss`, `s`, `ms`, `mss`, `a`, `A`, `ZZ` and `Z`.
|
|
772
772
|
* - *Any token not wrapped in brackets will be parsed and replaced with its corresponding date component.*
|
|
773
|
-
* - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
773
|
+
* - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/format#format-tokens format tokens} for details.
|
|
774
774
|
*
|
|
775
775
|
* @returns Formatted date string in desired format (UTC time).
|
|
776
776
|
*/
|
|
@@ -1166,7 +1166,7 @@ declare class Chronos {
|
|
|
1166
1166
|
* @param options - Relative range (e.g., 7 days, 4 weeks) and output format (local with timezone or utc).
|
|
1167
1167
|
* @returns Array of ISO date strings in the specified format. Returns empty array if no matches in the time span.
|
|
1168
1168
|
*
|
|
1169
|
-
* - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
1169
|
+
* - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/statics#getdatesforday docs} for details.
|
|
1170
1170
|
*
|
|
1171
1171
|
* @example
|
|
1172
1172
|
* Chronos.getDatesForDay('Wednesday', { span: 7, unit: 'day' });
|
|
@@ -1188,7 +1188,7 @@ declare class Chronos {
|
|
|
1188
1188
|
* @param options - Date range (from/to, e.g. `'2025-06-30'`, ` new Date()`, `new Chronos()` etc.) and output format (local with timezone or utc).
|
|
1189
1189
|
* @returns Array of ISO date strings in the specified format. Returns empty array if no matches in the range.
|
|
1190
1190
|
*
|
|
1191
|
-
* - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
1191
|
+
* - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/statics#getdatesforday docs} for details.
|
|
1192
1192
|
*
|
|
1193
1193
|
* @remarks
|
|
1194
1194
|
* - When using `Chronos` instances for `from` and/or `to`, ensure both are created in the **same time zone** to avoid mismatched boundaries.
|
|
@@ -1294,7 +1294,7 @@ declare class Chronos {
|
|
|
1294
1294
|
* - To prevent this incorrect *linter error* in `React` projects, prefer using {@link register} method (alias `use` method).
|
|
1295
1295
|
*
|
|
1296
1296
|
* - **NOTE:** *Once a plugin is injected, all the registered methods for that plugin will be available for the whole project.*
|
|
1297
|
-
* - See {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
1297
|
+
* - See {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/plugins#-official-plugins full list of plugins and the methods they register}.
|
|
1298
1298
|
*/
|
|
1299
1299
|
static use(plugin: ChronosPlugin): void;
|
|
1300
1300
|
/**
|
|
@@ -1307,7 +1307,7 @@ declare class Chronos {
|
|
|
1307
1307
|
* - To prevent this incorrect *linter error* in `React` projects, prefer using this (`register`) method over {@link use} method.
|
|
1308
1308
|
*
|
|
1309
1309
|
* - **NOTE:** *Once a plugin is injected, all the registered methods for that plugin will be available for the whole project.*
|
|
1310
|
-
* - See {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
1310
|
+
* - See {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/plugins#-official-plugins full list of plugins and the methods they register}.
|
|
1311
1311
|
*/
|
|
1312
1312
|
static register(plugin: ChronosPlugin): void;
|
|
1313
1313
|
}
|
|
@@ -1405,7 +1405,7 @@ interface ChronosStatics {
|
|
|
1405
1405
|
* - To prevent this incorrect *linter error* in `React` projects, prefer using {@link register} method (alias `use` method).
|
|
1406
1406
|
*
|
|
1407
1407
|
* - **NOTE:** *Once a plugin is injected, all the registered methods for that plugin will be available for the whole project.*
|
|
1408
|
-
* - See {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
1408
|
+
* - See {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/plugins#-official-plugins full list of plugins and the methods they register}.
|
|
1409
1409
|
*/
|
|
1410
1410
|
use(plugin: ChronosPlugin): void;
|
|
1411
1411
|
/**
|
|
@@ -1418,7 +1418,7 @@ interface ChronosStatics {
|
|
|
1418
1418
|
* - To prevent this incorrect *linter error* in `React` projects, prefer using this (`register`) method over {@link use} method.
|
|
1419
1419
|
*
|
|
1420
1420
|
* - **NOTE:** *Once a plugin is injected, all the registered methods for that plugin will be available for the whole project.*
|
|
1421
|
-
* - See {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
1421
|
+
* - See {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/plugins#-official-plugins full list of plugins and the methods they register}.
|
|
1422
1422
|
*/
|
|
1423
1423
|
register(plugin: ChronosPlugin): void;
|
|
1424
1424
|
/**
|
|
@@ -1762,7 +1762,7 @@ interface FormatOptions {
|
|
|
1762
1762
|
*
|
|
1763
1763
|
* - Supported format tokens include: `YYYY`, `YY`, `mmmm`, `mmm`, `MM`, `M`, `DD`, `D`, `dd`, `ddd`, `Do`, `HH`, `H`, `hh`, `h`, `mm`, `m`, `ss`, `s`, `ms`, `mss`, `a`, `A`, and `ZZ`.
|
|
1764
1764
|
* - *Any token not wrapped in brackets will be parsed and replaced with its corresponding date component.*
|
|
1765
|
-
* - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
1765
|
+
* - Please refer to {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/format#format-tokens format tokens} for details.
|
|
1766
1766
|
*/
|
|
1767
1767
|
format?: string;
|
|
1768
1768
|
/** - Whether to use UTC time. Defaults to `false`. */
|
|
@@ -1849,7 +1849,7 @@ interface ChronosInternals {
|
|
|
1849
1849
|
* @param offset Optional UTC offset in `UTC±HH:mm` format.
|
|
1850
1850
|
* @param tzName Optional time zone name to set.
|
|
1851
1851
|
* @param tzId Optional time zone identifier(s) to set.
|
|
1852
|
-
* @param tzTracker Optional tracker to identify the instance created by {@link https://toolbox.nazmul-nhb.dev/docs/classes/
|
|
1852
|
+
* @param tzTracker Optional tracker to identify the instance created by {@link https://toolbox.nazmul-nhb.dev/docs/classes/chronos/conversion#timezone timeZone} method.
|
|
1853
1853
|
* @returns The `Chronos` instance with the specified origin and other properties.
|
|
1854
1854
|
*/
|
|
1855
1855
|
withOrigin(instance: Chronos, method: PluginMethods, offset?: UTCOffset, tzName?: LooseLiteral<TimeZoneName>, tzId?: TimeZoneId, tzTracker?: $TimeZoneIdentifier | TimeZone | UTCOffset): Chronos;
|
package/dist/types.d.cts
CHANGED
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { $ as ChronosStaticKey, $t as BanglaDayName, A as ChronosObject, At as TimeZoneId, B as WithoutOrigin, C as $Chronos, Ct as PositiveUTCHour, D as ChronosInput, Dt as TimeWithUnit, E as $StaticMethods, Et as TimeUnitValue, F as PluginMethods, Ft as TimestampOptions, G as $NativeTzNameOrId, Gt as $BnDatePadded, H as $GMTOffset, Ht as $BanglaMonth, I as RangeWithDates, It as UTCMinute, J as $TimeUnitVar, Jt as $BnYearPadded, K as $TZLabelKey, Kt as $BnEn, L as RelativeDateRange, Lt as UTCOffset, M as ChronosWithOptions, Mt as TimeZoneIdentifier, N as DateRangeOptions, Nt as TimeZoneName, O as ChronosInternals, Ot as TimeZone, P as DatesInRangeOptions, Pt as TimeZoneNameNative, Q as $UnitAnyCase, Qt as BanglaDateOptions, R as RelativeRangeOptions, Rt as WeekDay, S as ZodiacSign, St as NumberingSystem, T as $PluginMethods, Tt as TimeUnit, U as $ISOTimeString, Ut as $BanglaMonthDate, V as $DateUnit, W as $LocalArguments, Wt as $BanglaYear, X as $TimeZoneIdentifier, Xt as BanglaDateFormat, Y as $TimeUnitVarMap, Yt as BanglaDate, Z as $UTCOffset, Zt as BanglaDateObject, _ as ZodiacArray, _n as TimeFormatToken, _t as Milliseconds, a as BusinessOptionsWeekends, an as BnCalendarVariant, at as DateFormatOptions, b as ZodiacOptions, bn as YearToken, bt as MonthString, c as DayPart, cn as DateToken, ct as DateTimeFormatOptions, d as DurationOptions, dn as HourToken, dt as GreetingConfigs, en as BanglaMonth, et as ClockHour, f as MonthBoundary, fn as MSToken, ft as HourMinutes, g as TimeDuration, gn as StrictFormat, gt as LocalesArguments, h as SeasonPreset, hn as SecondToken, ht as LocaleCalendar, i as BusinessOptionsBasic, in as BnCalendarConfig, it as DateArgs, j as ChronosProperties, jt as TimeZoneIdNative, k as ChronosMethods, kt as TimeZoneDetails, l as DayPartConfig, ln as DayToken, lt as FormatOptions, m as SeasonOptions, mn as MonthToken, mt as ISODateTimeString, n as $BusinessHourOptions, nn as BanglaSeasonName, nt as ClockSecond, o as ChronosPlugin, on as DateWithSeasonToken, ot as DateLike, p as SeasonDefinition, pn as MinuteToken, pt as ISODateFormat, q as $TimeUnitKey, qt as $BnMonthPadded, r as AcademicYear, rn as BanglaYear, rt as ClockTime, s as DateBoundary, sn as DateFormatToken, st as DateString, t as $BusinessHourBaseOptions, tn as BanglaMonthName, tt as ClockMinute, u as DurationKey, un as FormatToken, ut as FromNowUnit, v as ZodiacMeta, vn as TimeOnlyFormat, vt as MonthDateString, w as $InstanceMethods, wt as Quarter, x as ZodiacPreset, xt as NegativeUTCHour, y as ZodiacMetaOptions, yn as TimeToken, yt as MonthName, z as WeekdayOptions, zt as ChronosStatics } from "./types-
|
|
17
|
+
import { $ as ChronosStaticKey, $t as BanglaDayName, A as ChronosObject, At as TimeZoneId, B as WithoutOrigin, C as $Chronos, Ct as PositiveUTCHour, D as ChronosInput, Dt as TimeWithUnit, E as $StaticMethods, Et as TimeUnitValue, F as PluginMethods, Ft as TimestampOptions, G as $NativeTzNameOrId, Gt as $BnDatePadded, H as $GMTOffset, Ht as $BanglaMonth, I as RangeWithDates, It as UTCMinute, J as $TimeUnitVar, Jt as $BnYearPadded, K as $TZLabelKey, Kt as $BnEn, L as RelativeDateRange, Lt as UTCOffset, M as ChronosWithOptions, Mt as TimeZoneIdentifier, N as DateRangeOptions, Nt as TimeZoneName, O as ChronosInternals, Ot as TimeZone, P as DatesInRangeOptions, Pt as TimeZoneNameNative, Q as $UnitAnyCase, Qt as BanglaDateOptions, R as RelativeRangeOptions, Rt as WeekDay, S as ZodiacSign, St as NumberingSystem, T as $PluginMethods, Tt as TimeUnit, U as $ISOTimeString, Ut as $BanglaMonthDate, V as $DateUnit, W as $LocalArguments, Wt as $BanglaYear, X as $TimeZoneIdentifier, Xt as BanglaDateFormat, Y as $TimeUnitVarMap, Yt as BanglaDate, Z as $UTCOffset, Zt as BanglaDateObject, _ as ZodiacArray, _n as TimeFormatToken, _t as Milliseconds, a as BusinessOptionsWeekends, an as BnCalendarVariant, at as DateFormatOptions, b as ZodiacOptions, bn as YearToken, bt as MonthString, c as DayPart, cn as DateToken, ct as DateTimeFormatOptions, d as DurationOptions, dn as HourToken, dt as GreetingConfigs, en as BanglaMonth, et as ClockHour, f as MonthBoundary, fn as MSToken, ft as HourMinutes, g as TimeDuration, gn as StrictFormat, gt as LocalesArguments, h as SeasonPreset, hn as SecondToken, ht as LocaleCalendar, i as BusinessOptionsBasic, in as BnCalendarConfig, it as DateArgs, j as ChronosProperties, jt as TimeZoneIdNative, k as ChronosMethods, kt as TimeZoneDetails, l as DayPartConfig, ln as DayToken, lt as FormatOptions, m as SeasonOptions, mn as MonthToken, mt as ISODateTimeString, n as $BusinessHourOptions, nn as BanglaSeasonName, nt as ClockSecond, o as ChronosPlugin, on as DateWithSeasonToken, ot as DateLike, p as SeasonDefinition, pn as MinuteToken, pt as ISODateFormat, q as $TimeUnitKey, qt as $BnMonthPadded, r as AcademicYear, rn as BanglaYear, rt as ClockTime, s as DateBoundary, sn as DateFormatToken, st as DateString, t as $BusinessHourBaseOptions, tn as BanglaMonthName, tt as ClockMinute, u as DurationKey, un as FormatToken, ut as FromNowUnit, v as ZodiacMeta, vn as TimeOnlyFormat, vt as MonthDateString, w as $InstanceMethods, wt as Quarter, x as ZodiacPreset, xt as NegativeUTCHour, y as ZodiacMetaOptions, yn as TimeToken, yt as MonthName, z as WeekdayOptions, zt as ChronosStatics } from "./types-CaVuY1_4.cjs";
|
|
18
18
|
export { $BanglaMonth, $BanglaMonthDate, $BanglaYear, $BnDatePadded, $BnEn, $BnMonthPadded, $BnYearPadded, $BusinessHourBaseOptions, $BusinessHourOptions, $Chronos, $DateUnit, $GMTOffset, $ISOTimeString, $InstanceMethods, $LocalArguments, $NativeTzNameOrId, $PluginMethods, $StaticMethods, $TZLabelKey, $TimeUnitKey, $TimeUnitVar, $TimeUnitVarMap, $TimeZoneIdentifier, $UTCOffset, $UnitAnyCase, AcademicYear, BanglaDate, BanglaDateFormat, BanglaDateObject, BanglaDateOptions, BanglaDayName, BanglaMonth, BanglaMonthName, BanglaSeasonName, BanglaYear, BnCalendarConfig, BnCalendarVariant, BusinessOptionsBasic, BusinessOptionsWeekends, ChronosInput, ChronosInternals, ChronosMethods, ChronosObject, ChronosPlugin, ChronosProperties, ChronosStaticKey, ChronosStatics, ChronosWithOptions, ClockHour, ClockMinute, ClockSecond, ClockTime, DateArgs, DateBoundary, DateFormatOptions, DateFormatToken, DateLike, DateRangeOptions, DateString, DateTimeFormatOptions, DateToken, DateWithSeasonToken, DatesInRangeOptions, DayPart, DayPartConfig, DayToken, DurationKey, DurationOptions, FormatOptions, FormatToken, FromNowUnit, GreetingConfigs, HourMinutes, HourToken, ISODateFormat, ISODateTimeString, LocaleCalendar, LocalesArguments, MSToken, Milliseconds, MinuteToken, MonthBoundary, MonthDateString, MonthName, MonthString, MonthToken, NegativeUTCHour, NumberingSystem, PluginMethods, PositiveUTCHour, Quarter, RangeWithDates, RelativeDateRange, RelativeRangeOptions, SeasonDefinition, SeasonOptions, SeasonPreset, SecondToken, StrictFormat, TimeDuration, TimeFormatToken, TimeOnlyFormat, TimeToken, TimeUnit, TimeUnitValue, TimeWithUnit, TimeZone, TimeZoneDetails, TimeZoneId, TimeZoneIdNative, TimeZoneIdentifier, TimeZoneName, TimeZoneNameNative, TimestampOptions, UTCMinute, UTCOffset, WeekDay, WeekdayOptions, WithoutOrigin, YearToken, ZodiacArray, ZodiacMeta, ZodiacMetaOptions, ZodiacOptions, ZodiacPreset, ZodiacSign };
|
package/dist/types.d.mts
CHANGED
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { $ as ChronosStaticKey, $t as BanglaDayName, A as ChronosObject, At as TimeZoneId, B as WithoutOrigin, C as $Chronos, Ct as PositiveUTCHour, D as ChronosInput, Dt as TimeWithUnit, E as $StaticMethods, Et as TimeUnitValue, F as PluginMethods, Ft as TimestampOptions, G as $NativeTzNameOrId, Gt as $BnDatePadded, H as $GMTOffset, Ht as $BanglaMonth, I as RangeWithDates, It as UTCMinute, J as $TimeUnitVar, Jt as $BnYearPadded, K as $TZLabelKey, Kt as $BnEn, L as RelativeDateRange, Lt as UTCOffset, M as ChronosWithOptions, Mt as TimeZoneIdentifier, N as DateRangeOptions, Nt as TimeZoneName, O as ChronosInternals, Ot as TimeZone, P as DatesInRangeOptions, Pt as TimeZoneNameNative, Q as $UnitAnyCase, Qt as BanglaDateOptions, R as RelativeRangeOptions, Rt as WeekDay, S as ZodiacSign, St as NumberingSystem, T as $PluginMethods, Tt as TimeUnit, U as $ISOTimeString, Ut as $BanglaMonthDate, V as $DateUnit, W as $LocalArguments, Wt as $BanglaYear, X as $TimeZoneIdentifier, Xt as BanglaDateFormat, Y as $TimeUnitVarMap, Yt as BanglaDate, Z as $UTCOffset, Zt as BanglaDateObject, _ as ZodiacArray, _n as TimeFormatToken, _t as Milliseconds, a as BusinessOptionsWeekends, an as BnCalendarVariant, at as DateFormatOptions, b as ZodiacOptions, bn as YearToken, bt as MonthString, c as DayPart, cn as DateToken, ct as DateTimeFormatOptions, d as DurationOptions, dn as HourToken, dt as GreetingConfigs, en as BanglaMonth, et as ClockHour, f as MonthBoundary, fn as MSToken, ft as HourMinutes, g as TimeDuration, gn as StrictFormat, gt as LocalesArguments, h as SeasonPreset, hn as SecondToken, ht as LocaleCalendar, i as BusinessOptionsBasic, in as BnCalendarConfig, it as DateArgs, j as ChronosProperties, jt as TimeZoneIdNative, k as ChronosMethods, kt as TimeZoneDetails, l as DayPartConfig, ln as DayToken, lt as FormatOptions, m as SeasonOptions, mn as MonthToken, mt as ISODateTimeString, n as $BusinessHourOptions, nn as BanglaSeasonName, nt as ClockSecond, o as ChronosPlugin, on as DateWithSeasonToken, ot as DateLike, p as SeasonDefinition, pn as MinuteToken, pt as ISODateFormat, q as $TimeUnitKey, qt as $BnMonthPadded, r as AcademicYear, rn as BanglaYear, rt as ClockTime, s as DateBoundary, sn as DateFormatToken, st as DateString, t as $BusinessHourBaseOptions, tn as BanglaMonthName, tt as ClockMinute, u as DurationKey, un as FormatToken, ut as FromNowUnit, v as ZodiacMeta, vn as TimeOnlyFormat, vt as MonthDateString, w as $InstanceMethods, wt as Quarter, x as ZodiacPreset, xt as NegativeUTCHour, y as ZodiacMetaOptions, yn as TimeToken, yt as MonthName, z as WeekdayOptions, zt as ChronosStatics } from "./types-
|
|
17
|
+
import { $ as ChronosStaticKey, $t as BanglaDayName, A as ChronosObject, At as TimeZoneId, B as WithoutOrigin, C as $Chronos, Ct as PositiveUTCHour, D as ChronosInput, Dt as TimeWithUnit, E as $StaticMethods, Et as TimeUnitValue, F as PluginMethods, Ft as TimestampOptions, G as $NativeTzNameOrId, Gt as $BnDatePadded, H as $GMTOffset, Ht as $BanglaMonth, I as RangeWithDates, It as UTCMinute, J as $TimeUnitVar, Jt as $BnYearPadded, K as $TZLabelKey, Kt as $BnEn, L as RelativeDateRange, Lt as UTCOffset, M as ChronosWithOptions, Mt as TimeZoneIdentifier, N as DateRangeOptions, Nt as TimeZoneName, O as ChronosInternals, Ot as TimeZone, P as DatesInRangeOptions, Pt as TimeZoneNameNative, Q as $UnitAnyCase, Qt as BanglaDateOptions, R as RelativeRangeOptions, Rt as WeekDay, S as ZodiacSign, St as NumberingSystem, T as $PluginMethods, Tt as TimeUnit, U as $ISOTimeString, Ut as $BanglaMonthDate, V as $DateUnit, W as $LocalArguments, Wt as $BanglaYear, X as $TimeZoneIdentifier, Xt as BanglaDateFormat, Y as $TimeUnitVarMap, Yt as BanglaDate, Z as $UTCOffset, Zt as BanglaDateObject, _ as ZodiacArray, _n as TimeFormatToken, _t as Milliseconds, a as BusinessOptionsWeekends, an as BnCalendarVariant, at as DateFormatOptions, b as ZodiacOptions, bn as YearToken, bt as MonthString, c as DayPart, cn as DateToken, ct as DateTimeFormatOptions, d as DurationOptions, dn as HourToken, dt as GreetingConfigs, en as BanglaMonth, et as ClockHour, f as MonthBoundary, fn as MSToken, ft as HourMinutes, g as TimeDuration, gn as StrictFormat, gt as LocalesArguments, h as SeasonPreset, hn as SecondToken, ht as LocaleCalendar, i as BusinessOptionsBasic, in as BnCalendarConfig, it as DateArgs, j as ChronosProperties, jt as TimeZoneIdNative, k as ChronosMethods, kt as TimeZoneDetails, l as DayPartConfig, ln as DayToken, lt as FormatOptions, m as SeasonOptions, mn as MonthToken, mt as ISODateTimeString, n as $BusinessHourOptions, nn as BanglaSeasonName, nt as ClockSecond, o as ChronosPlugin, on as DateWithSeasonToken, ot as DateLike, p as SeasonDefinition, pn as MinuteToken, pt as ISODateFormat, q as $TimeUnitKey, qt as $BnMonthPadded, r as AcademicYear, rn as BanglaYear, rt as ClockTime, s as DateBoundary, sn as DateFormatToken, st as DateString, t as $BusinessHourBaseOptions, tn as BanglaMonthName, tt as ClockMinute, u as DurationKey, un as FormatToken, ut as FromNowUnit, v as ZodiacMeta, vn as TimeOnlyFormat, vt as MonthDateString, w as $InstanceMethods, wt as Quarter, x as ZodiacPreset, xt as NegativeUTCHour, y as ZodiacMetaOptions, yn as TimeToken, yt as MonthName, z as WeekdayOptions, zt as ChronosStatics } from "./types-Bs_rfkka.mjs";
|
|
18
18
|
export { $BanglaMonth, $BanglaMonthDate, $BanglaYear, $BnDatePadded, $BnEn, $BnMonthPadded, $BnYearPadded, $BusinessHourBaseOptions, $BusinessHourOptions, $Chronos, $DateUnit, $GMTOffset, $ISOTimeString, $InstanceMethods, $LocalArguments, $NativeTzNameOrId, $PluginMethods, $StaticMethods, $TZLabelKey, $TimeUnitKey, $TimeUnitVar, $TimeUnitVarMap, $TimeZoneIdentifier, $UTCOffset, $UnitAnyCase, AcademicYear, BanglaDate, BanglaDateFormat, BanglaDateObject, BanglaDateOptions, BanglaDayName, BanglaMonth, BanglaMonthName, BanglaSeasonName, BanglaYear, BnCalendarConfig, BnCalendarVariant, BusinessOptionsBasic, BusinessOptionsWeekends, ChronosInput, ChronosInternals, ChronosMethods, ChronosObject, ChronosPlugin, ChronosProperties, ChronosStaticKey, ChronosStatics, ChronosWithOptions, ClockHour, ClockMinute, ClockSecond, ClockTime, DateArgs, DateBoundary, DateFormatOptions, DateFormatToken, DateLike, DateRangeOptions, DateString, DateTimeFormatOptions, DateToken, DateWithSeasonToken, DatesInRangeOptions, DayPart, DayPartConfig, DayToken, DurationKey, DurationOptions, FormatOptions, FormatToken, FromNowUnit, GreetingConfigs, HourMinutes, HourToken, ISODateFormat, ISODateTimeString, LocaleCalendar, LocalesArguments, MSToken, Milliseconds, MinuteToken, MonthBoundary, MonthDateString, MonthName, MonthString, MonthToken, NegativeUTCHour, NumberingSystem, PluginMethods, PositiveUTCHour, Quarter, RangeWithDates, RelativeDateRange, RelativeRangeOptions, SeasonDefinition, SeasonOptions, SeasonPreset, SecondToken, StrictFormat, TimeDuration, TimeFormatToken, TimeOnlyFormat, TimeToken, TimeUnit, TimeUnitValue, TimeWithUnit, TimeZone, TimeZoneDetails, TimeZoneId, TimeZoneIdNative, TimeZoneIdentifier, TimeZoneName, TimeZoneNameNative, TimestampOptions, UTCMinute, UTCOffset, WeekDay, WeekdayOptions, WithoutOrigin, YearToken, ZodiacArray, ZodiacMeta, ZodiacMetaOptions, ZodiacOptions, ZodiacPreset, ZodiacSign };
|
package/dist/utils.d.cts
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { Dt as TimeWithUnit, Ft as TimestampOptions, Lt as UTCOffset, Sn as Numeric, X as $TimeZoneIdentifier, at as DateFormatOptions, dt as GreetingConfigs, ft as HourMinutes, gn as StrictFormat, it as DateArgs, jt as TimeZoneIdNative, kt as TimeZoneDetails, mt as ISODateTimeString, pt as ISODateFormat, rt as ClockTime, vn as TimeOnlyFormat, xn as Maybe } from "./types-
|
|
17
|
+
import { Dt as TimeWithUnit, Ft as TimestampOptions, Lt as UTCOffset, Sn as Numeric, X as $TimeZoneIdentifier, at as DateFormatOptions, dt as GreetingConfigs, ft as HourMinutes, gn as StrictFormat, it as DateArgs, jt as TimeZoneIdNative, kt as TimeZoneDetails, mt as ISODateTimeString, pt as ISODateFormat, rt as ClockTime, vn as TimeOnlyFormat, xn as Maybe } from "./types-CaVuY1_4.cjs";
|
|
18
18
|
|
|
19
19
|
//#region src/utils/greet.d.ts
|
|
20
20
|
/**
|
package/dist/utils.d.mts
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { Dt as TimeWithUnit, Ft as TimestampOptions, Lt as UTCOffset, Sn as Numeric, X as $TimeZoneIdentifier, at as DateFormatOptions, dt as GreetingConfigs, ft as HourMinutes, gn as StrictFormat, it as DateArgs, jt as TimeZoneIdNative, kt as TimeZoneDetails, mt as ISODateTimeString, pt as ISODateFormat, rt as ClockTime, vn as TimeOnlyFormat, xn as Maybe } from "./types-
|
|
17
|
+
import { Dt as TimeWithUnit, Ft as TimestampOptions, Lt as UTCOffset, Sn as Numeric, X as $TimeZoneIdentifier, at as DateFormatOptions, dt as GreetingConfigs, ft as HourMinutes, gn as StrictFormat, it as DateArgs, jt as TimeZoneIdNative, kt as TimeZoneDetails, mt as ISODateTimeString, pt as ISODateFormat, rt as ClockTime, vn as TimeOnlyFormat, xn as Maybe } from "./types-Bs_rfkka.mjs";
|
|
18
18
|
|
|
19
19
|
//#region src/utils/greet.d.ts
|
|
20
20
|
/**
|