chronos-date 1.0.0 → 1.0.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/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 +1 -1
- package/dist/plugins/dateRangePlugin.d.mts +1 -1
- 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 +1 -1
- package/dist/plugins/greetingPlugin.d.mts +1 -1
- 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.d.cts +1 -1
- package/dist/plugins/roundPlugin.d.mts +1 -1
- package/dist/plugins/seasonPlugin.d.cts +1 -1
- package/dist/plugins/seasonPlugin.d.mts +1 -1
- package/dist/plugins/timeZonePlugin.d.cts +1 -1
- package/dist/plugins/timeZonePlugin.d.mts +1 -1
- package/dist/plugins/zodiacPlugin.d.cts +1 -1
- package/dist/plugins/zodiacPlugin.d.mts +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { $t as BanglaDateOptions, C as $Chronos, Gt as $BanglaYear, Qt as BanglaDateObject, Ut as $BanglaMonth, Wt as $BanglaMonthDate, _n as StrictFormat, an as BnCalendarConfig, en as BanglaDayName, nn as BanglaMonthName, qt as $BnEn, rn as BanglaSeasonName } from "../types-DPTQ_yLx.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugins/banglaPlugin.d.ts
|
|
4
|
-
declare module '
|
|
4
|
+
declare module 'chronos-date' {
|
|
5
5
|
interface Chronos {
|
|
6
6
|
/**
|
|
7
7
|
* @instance Converts the current date to a complete Bangla calendar date object.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { $t as BanglaDateOptions, C as $Chronos, Gt as $BanglaYear, Qt as BanglaDateObject, Ut as $BanglaMonth, Wt as $BanglaMonthDate, _n as StrictFormat, an as BnCalendarConfig, en as BanglaDayName, nn as BanglaMonthName, qt as $BnEn, rn as BanglaSeasonName } from "../types-B2fgrJ86.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugins/banglaPlugin.d.ts
|
|
4
|
-
declare module '
|
|
4
|
+
declare module 'chronos-date' {
|
|
5
5
|
interface Chronos {
|
|
6
6
|
/**
|
|
7
7
|
* @instance Converts the current date to a complete Bangla calendar date object.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { C as $Chronos, D as ChronosInput, Dn as RangeTuple, Tn as NumberRange, Tt as Quarter, a as BusinessOptionsWeekends, i as BusinessOptionsBasic, r as AcademicYear, wn as Enumerate } from "../types-DPTQ_yLx.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugins/businessPlugin.d.ts
|
|
4
|
-
declare module '
|
|
4
|
+
declare module 'chronos-date' {
|
|
5
5
|
interface Chronos {
|
|
6
6
|
/**
|
|
7
7
|
* @instance Checks if the current date falls on a weekend using week start day and weekend length.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { C as $Chronos, D as ChronosInput, Dn as RangeTuple, Tn as NumberRange, Tt as Quarter, a as BusinessOptionsWeekends, i as BusinessOptionsBasic, r as AcademicYear, wn as Enumerate } from "../types-B2fgrJ86.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugins/businessPlugin.d.ts
|
|
4
|
-
declare module '
|
|
4
|
+
declare module 'chronos-date' {
|
|
5
5
|
interface Chronos {
|
|
6
6
|
/**
|
|
7
7
|
* @instance Checks if the current date falls on a weekend using week start day and weekend length.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { C as $Chronos, I as RangeWithDates, L as RelativeDateRange, ht as ISOTimeString } from "../types-DPTQ_yLx.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugins/dateRangePlugin.d.ts
|
|
4
|
-
declare module '
|
|
4
|
+
declare module 'chronos-date' {
|
|
5
5
|
interface Chronos {
|
|
6
6
|
/**
|
|
7
7
|
* @instance Returns an array of ISO date-time strings within a specific date range.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { C as $Chronos, I as RangeWithDates, L as RelativeDateRange, ht as ISOTimeString } from "../types-B2fgrJ86.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugins/dateRangePlugin.d.ts
|
|
4
|
-
declare module '
|
|
4
|
+
declare module 'chronos-date' {
|
|
5
5
|
interface Chronos {
|
|
6
6
|
/**
|
|
7
7
|
* @instance Returns an array of ISO date-time strings within a specific date range.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { C as $Chronos, c as DayPart, l as DayPartConfig } from "../types-DPTQ_yLx.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugins/dayPartPlugin.d.ts
|
|
4
|
-
declare module '
|
|
4
|
+
declare module 'chronos-date' {
|
|
5
5
|
interface Chronos {
|
|
6
6
|
/**
|
|
7
7
|
* @instance Returns the part of day (`'midnight', 'lateNight', 'night', 'morning', 'afternoon', 'evening'`) based on the current hour.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { C as $Chronos, c as DayPart, l as DayPartConfig } from "../types-B2fgrJ86.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugins/dayPartPlugin.d.ts
|
|
4
|
-
declare module '
|
|
4
|
+
declare module 'chronos-date' {
|
|
5
5
|
interface Chronos {
|
|
6
6
|
/**
|
|
7
7
|
* @instance Returns the part of day (`'midnight', 'lateNight', 'night', 'morning', 'afternoon', 'evening'`) based on the current hour.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { C as $Chronos, D as ChronosInput, d as DurationOptions, g as TimeDuration } from "../types-DPTQ_yLx.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugins/durationPlugin.d.ts
|
|
4
|
-
declare module '
|
|
4
|
+
declare module 'chronos-date' {
|
|
5
5
|
interface Chronos {
|
|
6
6
|
/**
|
|
7
7
|
* @instance Returns the full time duration breakdown between current input (start) and another time (to) as {@link TimeDuration} object.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { C as $Chronos, D as ChronosInput, d as DurationOptions, g as TimeDuration } from "../types-B2fgrJ86.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugins/durationPlugin.d.ts
|
|
4
|
-
declare module '
|
|
4
|
+
declare module 'chronos-date' {
|
|
5
5
|
interface Chronos {
|
|
6
6
|
/**
|
|
7
7
|
* @instance Returns the full time duration breakdown between current input (start) and another time (to) as {@link TimeDuration} object.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { C as $Chronos, D as ChronosInput, ut as FromNowUnit } from "../types-DPTQ_yLx.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugins/fromNowPlugin.d.ts
|
|
4
|
-
declare module '
|
|
4
|
+
declare module 'chronos-date' {
|
|
5
5
|
interface Chronos {
|
|
6
6
|
/**
|
|
7
7
|
* @instance Returns full time difference from now (or a specified time) down to a given level.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { C as $Chronos, D as ChronosInput, ut as FromNowUnit } from "../types-B2fgrJ86.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugins/fromNowPlugin.d.ts
|
|
4
|
-
declare module '
|
|
4
|
+
declare module 'chronos-date' {
|
|
5
5
|
interface Chronos {
|
|
6
6
|
/**
|
|
7
7
|
* @instance Returns full time difference from now (or a specified time) down to a given level.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { C as $Chronos, dt as GreetingConfigs } from "../types-DPTQ_yLx.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugins/greetingPlugin.d.ts
|
|
4
|
-
declare module '
|
|
4
|
+
declare module 'chronos-date' {
|
|
5
5
|
interface Chronos {
|
|
6
6
|
/**
|
|
7
7
|
* @instance Returns a greeting message based on current instance of `Chronos` time or provided time in the `configs`.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { C as $Chronos, dt as GreetingConfigs } from "../types-B2fgrJ86.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugins/greetingPlugin.d.ts
|
|
4
|
-
declare module '
|
|
4
|
+
declare module 'chronos-date' {
|
|
5
5
|
interface Chronos {
|
|
6
6
|
/**
|
|
7
7
|
* @instance Returns a greeting message based on current instance of `Chronos` time or provided time in the `configs`.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { C as $Chronos } from "../types-DPTQ_yLx.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugins/palindromePlugin.d.ts
|
|
4
|
-
declare module '
|
|
4
|
+
declare module 'chronos-date' {
|
|
5
5
|
interface Chronos {
|
|
6
6
|
/**
|
|
7
7
|
* @instance Checks if the current date is a palindrome in either padded or non-padded format.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { C as $Chronos } from "../types-B2fgrJ86.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugins/palindromePlugin.d.ts
|
|
4
|
-
declare module '
|
|
4
|
+
declare module 'chronos-date' {
|
|
5
5
|
interface Chronos {
|
|
6
6
|
/**
|
|
7
7
|
* @instance Checks if the current date is a palindrome in either padded or non-padded format.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { C as $Chronos, D as ChronosInput, Et as TimeUnit } from "../types-DPTQ_yLx.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugins/relativeTimePlugin.d.ts
|
|
4
|
-
declare module '
|
|
4
|
+
declare module 'chronos-date' {
|
|
5
5
|
interface Chronos {
|
|
6
6
|
/**
|
|
7
7
|
* @instance Returns the number of full years between the input date and now.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { C as $Chronos, D as ChronosInput, Et as TimeUnit } from "../types-B2fgrJ86.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugins/relativeTimePlugin.d.ts
|
|
4
|
-
declare module '
|
|
4
|
+
declare module 'chronos-date' {
|
|
5
5
|
interface Chronos {
|
|
6
6
|
/**
|
|
7
7
|
* @instance Returns the number of full years between the input date and now.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { C as $Chronos, Et as TimeUnit } from "../types-DPTQ_yLx.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugins/roundPlugin.d.ts
|
|
4
|
-
declare module '
|
|
4
|
+
declare module 'chronos-date' {
|
|
5
5
|
interface Chronos {
|
|
6
6
|
/**
|
|
7
7
|
* @instance Rounds the current date-time to the nearest specified unit and interval.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { C as $Chronos, Et as TimeUnit } from "../types-B2fgrJ86.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugins/roundPlugin.d.ts
|
|
4
|
-
declare module '
|
|
4
|
+
declare module 'chronos-date' {
|
|
5
5
|
interface Chronos {
|
|
6
6
|
/**
|
|
7
7
|
* @instance Rounds the current date-time to the nearest specified unit and interval.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { C as $Chronos, m as SeasonOptions } from "../types-DPTQ_yLx.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugins/seasonPlugin.d.ts
|
|
4
|
-
declare module '
|
|
4
|
+
declare module 'chronos-date' {
|
|
5
5
|
interface Chronos {
|
|
6
6
|
/**
|
|
7
7
|
* @instance Returns the current season name based on optional season rules or presets.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { C as $Chronos, m as SeasonOptions } from "../types-B2fgrJ86.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugins/seasonPlugin.d.ts
|
|
4
|
-
declare module '
|
|
4
|
+
declare module 'chronos-date' {
|
|
5
5
|
interface Chronos {
|
|
6
6
|
/**
|
|
7
7
|
* @instance Returns the current season name based on optional season rules or presets.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { C as $Chronos, En as LooseLiteral, Nt as TimeZoneIdentifier, Pt as TimeZoneName, Rt as UTCOffset, kt as TimeZone } from "../types-DPTQ_yLx.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugins/timeZonePlugin.d.ts
|
|
4
|
-
declare module '
|
|
4
|
+
declare module 'chronos-date' {
|
|
5
5
|
interface Chronos {
|
|
6
6
|
/**
|
|
7
7
|
* @instance Creates a new instance of `Chronos` for the specified time zone identifier.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { C as $Chronos, En as LooseLiteral, Nt as TimeZoneIdentifier, Pt as TimeZoneName, Rt as UTCOffset, kt as TimeZone } from "../types-B2fgrJ86.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugins/timeZonePlugin.d.ts
|
|
4
|
-
declare module '
|
|
4
|
+
declare module 'chronos-date' {
|
|
5
5
|
interface Chronos {
|
|
6
6
|
/**
|
|
7
7
|
* @instance Creates a new instance of `Chronos` for the specified time zone identifier.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { C as $Chronos, S as ZodiacSign, b as ZodiacOptions, v as ZodiacMeta, y as ZodiacMetaOptions } from "../types-DPTQ_yLx.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugins/zodiacPlugin.d.ts
|
|
4
|
-
declare module '
|
|
4
|
+
declare module 'chronos-date' {
|
|
5
5
|
interface Chronos {
|
|
6
6
|
/**
|
|
7
7
|
* @instance Returns the zodiac sign based on current date or `birthDate` option.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { C as $Chronos, S as ZodiacSign, b as ZodiacOptions, v as ZodiacMeta, y as ZodiacMetaOptions } from "../types-B2fgrJ86.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugins/zodiacPlugin.d.ts
|
|
4
|
-
declare module '
|
|
4
|
+
declare module 'chronos-date' {
|
|
5
5
|
interface Chronos {
|
|
6
6
|
/**
|
|
7
7
|
* @instance Returns the zodiac sign based on current date or `birthDate` option.
|