@trackunit/date-and-time-utils 0.0.25 → 0.0.27

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.
@@ -1,19 +1,43 @@
1
+ import "@formatjs/intl-durationformat/polyfill";
1
2
  import { Temporal } from "@js-temporal/polyfill";
2
3
  export type TemporalDate = Temporal.Instant | Temporal.ZonedDateTime | Date;
3
4
  type TemporalFormatTypes = Intl.DateTimeFormatOptions;
5
+ type TemporalTimeTypes = Extract<Intl.RelativeTimeFormatUnit, "days" | "hours" | "minutes">;
4
6
  type TemporalFormatSelector = "dateOnly" | "timeOnly";
5
7
  export type TemporalFormatStyle = Intl.ListFormatStyle;
8
+ export interface DateRange {
9
+ start: Date;
10
+ end: Date;
11
+ }
6
12
  export interface TemporalFormat {
7
13
  selectFormat?: TemporalFormatSelector;
8
14
  dateFormat?: TemporalFormatTypes["dateStyle"];
9
15
  timeFormat?: TemporalFormatTypes["timeStyle"];
16
+ dayFormat?: TemporalFormatTypes["dayPeriod"];
10
17
  }
18
+ /**
19
+ * converts timZoneId to TimeZone object with default to current user timezone
20
+ *
21
+ * @param timeZoneId - The time zone to use for the conversion.
22
+ * returns A time zone object. { id: string, offset: string, name: string }
23
+ */
24
+ export declare const getTimeZone: (timeZoneId?: string) => {
25
+ id: string;
26
+ offset: string;
27
+ name: string;
28
+ };
29
+ /**
30
+ * get the offset count for a given timezone. Europe/Berlin would return +2:00
31
+ *
32
+ * @param timeZone - The time zone to use for the conversion.
33
+ */
34
+ export declare const getTimeZoneOffset: (timeZone: string) => string;
11
35
  /**
12
36
  * Returns a list of all supported time zones.
13
37
  *
14
38
  * @returns {string[]}
15
39
  */
16
- export declare const timeZonesAvailable: any;
40
+ export declare const timeZonesAvailable: string[];
17
41
  /**
18
42
  * Formats a temporal date according to the specified format, time zone, and locale.
19
43
  *
@@ -58,20 +82,19 @@ export declare const formatDateUtil: (date: TemporalDate, format?: TemporalForma
58
82
  /**
59
83
  * Formats a date range.
60
84
  *
61
- * @param {Date} start - The start date of the range.
62
- * @param {Date} end - The end date of the range.
85
+ * @param {DateRange} range - The start date of the range.
63
86
  * @param {string} locale - The locale identifier (e.g., 'en-US', 'fr-FR') used for formatting.
64
87
  * @param {Intl.DateTimeFormatOptions} [format] - Optional formatting options for the date and time.
65
88
  * @returns {string} A formatted string representing the date range.
66
89
  */
67
- export declare const formatRangeUtil: (start: Date, end: Date, locale: string, format?: TemporalFormatTypes) => string;
90
+ export declare const formatRangeUtil: (range: DateRange, locale: string, format?: TemporalFormatTypes) => string;
68
91
  /**
69
92
  * Subtracts a specified number of minutes from a date.
70
93
  *
71
94
  * @param {TemporalDate} date - The temporal date from which to subtract minutes.
72
95
  * @param {number} amount - The number of minutes to subtract.
73
96
  * @param {string} [timeZone] - The time zone to use for the subtraction. If not provided, the system's default time zone will be used.
74
- * @returns {TemporalDate} The resulting temporal date after subtracting the specified number of minutes.
97
+ * @returns {Temporal.ZonedDateTime} The resulting temporal date after subtracting the specified number of minutes.
75
98
  * @example
76
99
  * const dateString = "2023-05-10T10:30:00.000Z"
77
100
  * const date = new Date(dateString);
@@ -86,7 +109,7 @@ export declare const subtractMinutesUtil: (date: TemporalDate, amount: number, t
86
109
  * @param {TemporalDate} date - The temporal date from which to subtract hours.
87
110
  * @param {number} amount - The number of hours to subtract.
88
111
  * @param {string} [timeZone] - The time zone to use for the subtraction. If not provided, the system's default time zone will be used.
89
- * @returns {TemporalDate} The resulting temporal date after subtracting the specified number of hours.
112
+ * @returns {Temporal.ZonedDateTime} The resulting temporal date after subtracting the specified number of hours.
90
113
  * @example
91
114
  * const dateString = "2023-05-10T10:30:00.000Z"
92
115
  * const date = new Date(dateString);
@@ -101,7 +124,7 @@ export declare const subtractHoursUtil: (date: TemporalDate, amount: number, tim
101
124
  * @param {TemporalDate} date - The temporal date from which to subtract days.
102
125
  * @param {number} amount - The number of days to subtract.
103
126
  * @param {string} [timeZone] - The time zone to use for the subtraction. If not provided, the system's default time zone will be used.
104
- * @returns {TemporalDate} The resulting temporal date after subtracting the specified number of days.
127
+ * @returns {Temporal.ZonedDateTime} The resulting temporal date after subtracting the specified number of days.
105
128
  * @example
106
129
  * const dateString = "2023-05-10"
107
130
  * const date = new Date(dateString);
@@ -116,7 +139,7 @@ export declare const subtractDaysUtil: (date: TemporalDate, amount: number, time
116
139
  * @param {TemporalDate} date - The temporal date from which to subtract weeks.
117
140
  * @param {number} amount - The number of weeks to subtract.
118
141
  * @param {string} [timeZone] - The time zone to use for the subtraction. If not provided, the system's default time zone will be used.
119
- * @returns {TemporalDate} The resulting temporal date after subtracting the specified number of weeks.
142
+ * @returns {Temporal.ZonedDateTime} The resulting temporal date after subtracting the specified number of weeks.
120
143
  * @example
121
144
  * const dateString = "2023-05-10"
122
145
  * const date = new Date(dateString);
@@ -131,7 +154,7 @@ export declare const subtractWeeksUtil: (date: TemporalDate, amount: number, tim
131
154
  * @param {TemporalDate} date - The temporal date from which to subtract months.
132
155
  * @param {number} amount - The number of months to subtract.
133
156
  * @param {string} [timeZone] - The time zone to use for the subtraction. If not provided, the system's default time zone will be used.
134
- * @returns {TemporalDate} The resulting temporal date after subtracting the specified number of months.
157
+ * @returns {Temporal.ZonedDateTime} The resulting temporal date after subtracting the specified number of months.
135
158
  * @example
136
159
  * const dateString = "2023-05-10"
137
160
  * const date = new Date(dateString);
@@ -146,7 +169,7 @@ export declare const subtractMonthsUtil: (date: TemporalDate, amount: number, ti
146
169
  * @param {TemporalDate} date - The temporal date from which to subtract years.
147
170
  * @param {number} amount - The number of years to subtract.
148
171
  * @param {string} [timeZone] - The time zone to use for the subtraction. If not provided, the system's default time zone will be used.
149
- * @returns {TemporalDate} The resulting temporal date after subtracting the specified number of years.
172
+ * @returns {Temporal.ZonedDateTime} The resulting temporal date after subtracting the specified number of years.
150
173
  * @example
151
174
  * const dateString = "2023-05-10"
152
175
  * const date = new Date(dateString);
@@ -161,7 +184,7 @@ export declare const subtractYearsUtil: (date: TemporalDate, amount: number, tim
161
184
  * @param {TemporalDate} date - The temporal date to which minutes will be added.
162
185
  * @param {number} amount - The number of minutes to add.
163
186
  * @param {string} [timeZone] - The time zone to use for the addition. If not provided, the system's default time zone will be used.
164
- * @returns {TemporalDate} The resulting temporal date after adding the specified number of minutes.
187
+ * @returns {Temporal.ZonedDateTime} The resulting temporal date after adding the specified number of minutes.
165
188
  * @example
166
189
  * const dateString = "2023-05-10"
167
190
  * const date = new Date(dateString);
@@ -176,7 +199,7 @@ export declare const addMinutesUtil: (date: TemporalDate, amount: number, timeZo
176
199
  * @param {TemporalDate} date - The temporal date to which hours will be added.
177
200
  * @param {number} amount - The number of hours to add.
178
201
  * @param {string} [timeZone] - The time zone to use for the addition. If not provided, the system's default time zone will be used.
179
- * @returns {TemporalDate} The resulting temporal date after adding the specified number of hours.
202
+ * @returns {Temporal.ZonedDateTime} The resulting temporal date after adding the specified number of hours.
180
203
  * @example
181
204
  * const dateString = "2023-05-10"
182
205
  * const date = new Date(dateString);
@@ -191,7 +214,7 @@ export declare const addHoursUtil: (date: TemporalDate, amount: number, timeZone
191
214
  * @param {TemporalDate} date - The temporal date to which days will be added.
192
215
  * @param {number} amount - The number of days to add.
193
216
  * @param {string} [timeZone] - The time zone to use for the addition. If not provided, the system's default time zone will be used.
194
- * @returns {TemporalDate} The resulting temporal date after adding the specified number of days.
217
+ * @returns {Temporal.ZonedDateTime} The resulting temporal date after adding the specified number of days.
195
218
  * @example
196
219
  * const dateString = "2023-05-10"
197
220
  * const date = new Date(dateString);
@@ -206,7 +229,7 @@ export declare const addDaysUtil: (date: TemporalDate, amount: number, timeZone?
206
229
  * @param {TemporalDate} date - The temporal date to which weeks will be added.
207
230
  * @param {number} amount - The number of weeks to add.
208
231
  * @param {string} [timeZone] - The time zone to use for the addition. If not provided, the system's default time zone will be used.
209
- * @returns {TemporalDate} The resulting temporal date after adding the specified number of weeks.
232
+ * @returns {Temporal.ZonedDateTime} The resulting temporal date after adding the specified number of weeks.
210
233
  * @example
211
234
  * const dateString = "2023-05-10"
212
235
  * const date = new Date(dateString);
@@ -221,7 +244,7 @@ export declare const addWeeksUtil: (date: TemporalDate, amount: number, timeZone
221
244
  * @param {TemporalDate} date - The temporal date to which months will be added.
222
245
  * @param {number} amount - The number of months to add.
223
246
  * @param {string} [timeZone] - The time zone to use for the addition. If not provided, the system's default time zone will be used.
224
- * @returns {TemporalDate} The resulting temporal date after adding the specified number of months.
247
+ * @returns {Temporal.ZonedDateTime} The resulting temporal date after adding the specified number of months.
225
248
  * @example
226
249
  * const dateString = "2023-05-10"
227
250
  * const date = new Date(dateString);
@@ -236,7 +259,7 @@ export declare const addMonthsUtil: (date: TemporalDate, amount: number, timeZon
236
259
  * @param {TemporalDate} date - The temporal date to which years will be added.
237
260
  * @param {number} amount - The number of years to add.
238
261
  * @param {string} [timeZone] - The time zone to use for the addition. If not provided, the system's default time zone will be used.
239
- * @returns {TemporalDate} The resulting temporal date after adding the specified number of years.
262
+ * @returns {Temporal.ZonedDateTime} The resulting temporal date after adding the specified number of years.
240
263
  * @example
241
264
  * const dateString = "2023-05-10"
242
265
  * const date = new Date(dateString);
@@ -250,33 +273,33 @@ export declare const addYearsUtil: (date: TemporalDate, amount: number, timeZone
250
273
  *
251
274
  * @param {TemporalDate} date - The temporal date for which to determine the start of the minute.
252
275
  * @param {string} [timeZone] - The time zone to use for determining the start of the minute. If not provided, the system's default time zone will be used.
253
- * @returns {TemporalDate} The temporal date representing the start of the minute.
276
+ * @returns {Temporal.ZonedDateTime} The temporal date representing the start of the minute.
254
277
  * @example
255
278
  * const dateString = "2023-05-10T10:30:10.000Z"
256
279
  * const date = new Date(dateString);
257
280
  * const result = startOfMinuteUtil(date);
258
281
  * Output: Temporal.ZonedDateTime { year: 2023, month: 5, day: 10, hour: 10, minute: 30, second: 0, millisecond: 0, microsecond: 0, nanosecond: 0, timeZone: Temporal.TimeZone { id: "America/New_York" }, calendar: Temporal.Calendar { id: "iso8601" } }
259
282
  */
260
- export declare const startOfMinuteUtil: (date: TemporalDate, timeZone?: string) => Temporal.ZonedDateTime;
283
+ export declare const startOfMinuteUtil: (date: TemporalDate, timeZone?: string) => TemporalDate;
261
284
  /**
262
285
  * Returns the end of the minute for a date.
263
286
  *
264
287
  * @param {TemporalDate} date - The temporal date for which to determine the end of the minute.
265
288
  * @param {string} [timeZone] - The time zone to use for determining the end of the minute. If not provided, the system's default time zone will be used.
266
- * @returns {TemporalDate} The temporal date representing the end of the minute.
289
+ * @returns {Temporal.ZonedDateTime} The temporal date representing the end of the minute.
267
290
  * @example
268
291
  * const dateString = "2023-05-10T10:30:10.000Z"
269
292
  * const date = new Date(dateString);
270
293
  * const result = endOfMinuteUtil(date);
271
294
  * Output: Temporal.ZonedDateTime { year: 2023, month: 5, hour: 10, day: 10, minute: 30, second: 59, millisecond: 999, microsecond: 0, nanosecond: 0, timeZone: Temporal.TimeZone { id: "America/New_York" }, calendar: Temporal.Calendar { id: "iso8601" } }
272
295
  */
273
- export declare const endOfMinuteUtil: (date: TemporalDate, timeZone?: string) => Temporal.ZonedDateTime;
296
+ export declare const endOfMinuteUtil: (date: TemporalDate, timeZone?: string) => TemporalDate;
274
297
  /**
275
298
  * Returns the start of the hour for a temporal date.
276
299
  *
277
300
  * @param {TemporalDate} date - The temporal date for which to determine the start of the hour.
278
301
  * @param {string} [timeZone] - The time zone to use for determining the start of the hour. If not provided, the system's default time zone will be used.
279
- * @returns {TemporalDate} The temporal date representing the start of the hour.
302
+ * @returns {Temporal.ZonedDateTime} The temporal date representing the start of the hour.
280
303
  * @example
281
304
  * const dateString = "2023-05-10T10:30:30.000Z"
282
305
  * const date = new Date(dateString);
@@ -289,7 +312,7 @@ export declare const startOfHourUtil: (date: TemporalDate, timeZone?: string) =>
289
312
  *
290
313
  * @param {TemporalDate} date - The temporal date for which to determine the end of the hour.
291
314
  * @param {string} [timeZone] - The time zone to use for determining the end of the hour. If not provided, the system's default time zone will be used.
292
- * @returns {TemporalDate} The temporal date representing the end of the hour.
315
+ * @returns {Temporal.ZonedDateTime} The temporal date representing the end of the hour.
293
316
  * @example
294
317
  * const dateString = "2023-05-10T10:30:00.000Z"
295
318
  * const date = new Date(dateString);
@@ -302,7 +325,7 @@ export declare const endOfHourUtil: (date: TemporalDate, timeZone?: string) => T
302
325
  *
303
326
  * @param {TemporalDate} date - The temporal date for which to determine the start of the day.
304
327
  * @param {string} [timeZone] - The time zone to use for determining the start of the day. If not provided, the system's default time zone will be used.
305
- * @returns {TemporalDate} The temporal date representing the start of the day.
328
+ * @returns {Temporal.ZonedDateTime} The temporal date representing the start of the day.
306
329
  * @example
307
330
  * const dateString = "2023-05-10T10:30:00.000Z"
308
331
  * const date = new Date(dateString);
@@ -315,7 +338,7 @@ export declare const startOfDayUtil: (date: TemporalDate, timeZone?: string) =>
315
338
  *
316
339
  * @param {TemporalDate} date - The temporal date for which to determine the end of the day.
317
340
  * @param {string} [timeZone] - The time zone to use for determining the end of the day. If not provided, the system's default time zone will be used.
318
- * @returns {TemporalDate} The temporal date representing the end of the day.
341
+ * @returns {Temporal.ZonedDateTime} The temporal date representing the end of the day.
319
342
  * @example
320
343
  * const dateString = "2023-05-10T10:30:00.000Z"
321
344
  * const date = new Date(dateString);
@@ -328,7 +351,7 @@ export declare const endOfDayUtil: (date: TemporalDate, timeZone?: string) => Te
328
351
  *
329
352
  * @param {TemporalDate} date - The temporal date for which to determine the start of the week.
330
353
  * @param {string} [timeZone] - The time zone to use for determining the start of the week. If not provided, the system's default time zone will be used.
331
- * @returns {TemporalDate} The temporal date representing the start of the week.
354
+ * @returns {Temporal.ZonedDateTime} The temporal date representing the start of the week.
332
355
  * @example
333
356
  * const dateString = "2023-05-10T10:30:00.000Z"
334
357
  * const date = new Date(dateString);
@@ -341,7 +364,7 @@ export declare const startOfWeekUtil: (date: TemporalDate, timeZone?: string) =>
341
364
  *
342
365
  * @param {TemporalDate} date - The temporal date for which to determine the end of the week.
343
366
  * @param {string} [timeZone] - The time zone to use for determining the end of the week. If not provided, the system's default time zone will be used.
344
- * @returns {TemporalDate} The temporal date representing the end of the week.
367
+ * @returns {Temporal.ZonedDateTime} The temporal date representing the end of the week.
345
368
  * @example
346
369
  * const dateString = "2023-05-10T10:30:00.000Z"
347
370
  * const date = new Date(dateString);
@@ -354,7 +377,7 @@ export declare const endOfWeekUtil: (date: TemporalDate, timeZone?: string) => T
354
377
  *
355
378
  * @param {TemporalDate} date - The temporal date for which to determine the start of the month.
356
379
  * @param {string} [timeZone] - The time zone to use for determining the start of the month. If not provided, the system's default time zone will be used.
357
- * @returns {TemporalDate} The temporal date representing the start of the month.
380
+ * @returns {Temporal.ZonedDateTime} The temporal date representing the start of the month.
358
381
  * @example
359
382
  * const dateString = "2023-05-10T10:30:00.000Z"
360
383
  * const date = new Date(dateString);
@@ -367,7 +390,7 @@ export declare const startOfMonthUtil: (date: TemporalDate, timeZone?: string) =
367
390
  *
368
391
  * @param {TemporalDate} date - The temporal date for which to determine the end of the month.
369
392
  * @param {string} [timeZone] - The time zone to use for determining the end of the month. If not provided, the system's default time zone will be used.
370
- * @returns {TemporalDate} The temporal date representing the end of the month.
393
+ * @returns {Temporal.ZonedDateTime} The temporal date representing the end of the month.
371
394
  * @example
372
395
  * const dateString = "2023-05-10"
373
396
  * const date = new Date(dateString);
@@ -530,6 +553,14 @@ export declare const isPastUtil: (date: TemporalDate) => boolean;
530
553
  * Output: true (if date is same as Temporal.Now.instant())
531
554
  */
532
555
  export declare const isTodayUtil: (date: TemporalDate) => boolean;
556
+ /**
557
+ *
558
+ *
559
+ * @param date - The date to check.
560
+ * @param start - The start date to compare against.
561
+ * @param end - The en date to compare against.
562
+ */
563
+ export declare const isBetweenUtil: (date: TemporalDate, start?: TemporalDate, end?: TemporalDate) => boolean;
533
564
  /**
534
565
  * Checks if a date is same day as current.
535
566
  *
@@ -710,6 +741,23 @@ export declare const timeSinceInMonths: (from: TemporalDate, to: TemporalDate, t
710
741
  * Output: "1 year ago"
711
742
  */
712
743
  export declare const timeSinceInYears: (from: TemporalDate, to: TemporalDate, timeZone?: string, locale?: string) => string;
744
+ /**
745
+ * Get duration in human-readable form
746
+ *
747
+ * @param duration - years, months, days, minutes, seconds
748
+ * @param locale - selected locale
749
+ * @param format - long, short, narrow
750
+ * @returns {string} human-readable string
751
+ */
752
+ export declare const getDurationFormat: (duration: Intl.Duration, locale?: string, format?: TemporalFormat["dayFormat"]) => string;
753
+ /**
754
+ * convert a number to a type
755
+ *
756
+ * @param {number} number - 230.45
757
+ * @param {TemporalTimeTypes} unit - "days | "hours" | minutes
758
+ * @param {Temporal.TimeUnit} roundAt - smallest unit to show
759
+ */
760
+ export declare const toDuration: (number: number, unit: TemporalTimeTypes, roundAt?: Extract<Temporal.TimeUnit, "hour" | "minute" | "second">) => Intl.Duration;
713
761
  /**
714
762
  * Converts a JavaScript Date object to a Temporal Instant.
715
763
  *
@@ -720,7 +768,7 @@ export declare const timeSinceInYears: (from: TemporalDate, to: TemporalDate, ti
720
768
  * const result = toTemporalUtil(jsDate);
721
769
  * Output: Temporal.Instant { year: ..., month: ..., day: ..., hour: ..., minute: ..., second: ..., millisecond: ... }
722
770
  */
723
- export declare const toTemporalUtil: (date: Date) => Temporal.Instant;
771
+ export declare const toTemporalUtil: (date: Date | string) => Temporal.Instant;
724
772
  /**
725
773
  * Converts a Temporal Instant or Temporal ZonedDateTime to a JavaScript Date object.
726
774
  *
@@ -736,7 +784,7 @@ export declare const toTemporalUtil: (date: Date) => Temporal.Instant;
736
784
  * const result2 = toDateUtil(temporalZonedDateTime);
737
785
  * Output: Date { ... } (equivalent JavaScript Date object)
738
786
  */
739
- export declare const toDateUtil: (date: Temporal.Instant | Temporal.ZonedDateTime) => Date;
787
+ export declare const toDateUtil: (date: Temporal.Instant | Temporal.ZonedDateTime | Date | string | number) => Date;
740
788
  /**
741
789
  * Converts a Temporal ZonedDateTime to a Temporal Instant.
742
790
  *
@@ -747,7 +795,7 @@ export declare const toDateUtil: (date: Temporal.Instant | Temporal.ZonedDateTim
747
795
  * const result = toInstantUtil(zonedDateTime);
748
796
  * Output: Temporal.Instant { year: ..., month: ..., day: ..., hour: ..., minute: ..., second: ..., millisecond: ... }
749
797
  */
750
- export declare const toInstantUtil: (zonedDateTime: Temporal.ZonedDateTime) => Temporal.Instant;
798
+ export declare const toInstantUtil: (zonedDateTime: Temporal.ZonedDateTime | Date | string) => Temporal.Instant;
751
799
  /**
752
800
  * Converts a date to a temporal zoned date-time.
753
801
  *
@@ -762,7 +810,7 @@ export declare const toInstantUtil: (zonedDateTime: Temporal.ZonedDateTime) => T
762
810
  * const result = toZonedDateTimeUtil(date, timeZoneId);
763
811
  * Output: Temporal.ZonedDateTime { year: 2023, month: 5, day: 10, hour: 10, minute: 30, second: 0, millisecond: 0, microsecond: 0, nanosecond: 0, timeZone: Temporal.TimeZone { id: "America/New_York" }, calendar: Temporal.Calendar { id: "iso8601" } }
764
812
  */
765
- export declare const toZonedDateTimeUtil: (date: TemporalDate, timeZoneId?: string, calendar?: string) => Temporal.ZonedDateTime;
813
+ export declare const toZonedDateTimeUtil: (date: TemporalDate | string, timeZoneId?: string, calendar?: string) => Temporal.ZonedDateTime;
766
814
  /**
767
815
  * Returns the month name for the given date.
768
816
  *
@@ -787,6 +835,13 @@ export declare const toZonedDateTimeUtil: (date: TemporalDate, timeZoneId?: stri
787
835
  * Output: "A"
788
836
  */
789
837
  export declare const monthNameUtil: (date: TemporalDate, format: TemporalFormatStyle, locale?: string) => string;
838
+ /**
839
+ * Returns a list of month names
840
+ *
841
+ * @param {TemporalFormatStyle} format - select the format of the month name
842
+ * @param {string} locale - The locale to use for formatting. If not provided, the system's default locale will be used.
843
+ */
844
+ export declare const monthsUtil: (format?: TemporalFormatStyle, locale?: string) => string[];
790
845
  /**
791
846
  * Returns the day name for the given date.
792
847
  *
@@ -811,4 +866,11 @@ export declare const monthNameUtil: (date: TemporalDate, format: TemporalFormatS
811
866
  * Output: "M"
812
867
  */
813
868
  export declare const dayNameUtil: (date: TemporalDate, format: TemporalFormatStyle, locale?: string) => string;
869
+ /**
870
+ * Returns a list of day names
871
+ *
872
+ * @param {TemporalFormatStyle} format - select the format of the day name
873
+ * @param {string} locale - The locale to use for formatting. If not provided, the system's default locale will be used.
874
+ */
875
+ export declare const daysUtil: (format?: TemporalFormatStyle, locale?: string) => string[];
814
876
  export {};