@timestamp-js/core 0.1.0-alpha.2 → 0.1.0-alpha.3

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/index.d.ts CHANGED
@@ -134,11 +134,11 @@ export interface DisabledDayConfig {
134
134
  */
135
135
  to?: string;
136
136
  /**
137
- * Alias for {@link DisabledDayConfig.from}.
137
+ * Alias for DisabledDayConfig.from.
138
138
  */
139
139
  start?: string;
140
140
  /**
141
- * Alias for {@link DisabledDayConfig.to}.
141
+ * Alias for DisabledDayConfig.to.
142
142
  */
143
143
  end?: string;
144
144
  /**
@@ -311,7 +311,7 @@ export interface TimeObject {
311
311
  /**
312
312
  * Frozen empty timestamp template.
313
313
  *
314
- * Use {@link copyTimestamp} or parser helpers to create new timestamp objects
314
+ * Use copyTimestamp or parser helpers to create new timestamp objects
315
315
  * instead of mutating this shared default.
316
316
  */
317
317
  export declare const Timestamp: Timestamp;
@@ -330,20 +330,33 @@ export declare function validateTimestamp(input: string): boolean;
330
330
  * Fast low-level parser for date and date-time strings.
331
331
  *
332
332
  * This parser fills numeric fields, but does not update formatted date,
333
- * weekday, day-of-year, workweek, or relative flags. Use
334
- * {@link parseTimestamp} when those derived fields are needed.
333
+ * weekday, day-of-year, workweek, or relative flags. Use parseTimestamp()
334
+ * when those derived fields are needed.
335
335
  *
336
336
  * @param {string} input In the form `YYYY-MM-DD`, `YYYY-MM-DD HH:mm:ss`, or an ISO-like date time with optional milliseconds and timezone suffix.
337
- * @returns {Timestamp} This {@link Timestamp} is minimally filled in. The {@link Timestamp.date} and {@link Timestamp.time} as well as relative data will not be filled in.
337
+ * @returns {Timestamp} Minimal Timestamp object, or `null` when the input cannot be parsed.
338
338
  */
339
339
  export declare function parsed(input: string): Timestamp | null;
340
340
  /**
341
- * Takes a JavaScript Date and returns a {@link Timestamp}. The {@link Timestamp} is not updated with relative information.
342
- * @param {Date} date JavaScript Date
343
- * @param {boolean} utc If set the {@link Timestamp} will parse the Date as UTC
344
- * @returns {Timestamp} A minimal {@link Timestamp} without updated or relative updates.
341
+ * Converts a JavaScript Date into a formatted Timestamp using host-local fields.
342
+ *
343
+ * Use parseDateUTC() when the Date represents an instant that should be read
344
+ * with UTC getters instead of host-local getters.
345
+ *
346
+ * @param {Date} date JavaScript Date to convert.
347
+ * @returns {Timestamp} Formatted Timestamp object, or `null` for invalid input.
348
+ */
349
+ export declare function parseDate(date: Date): Timestamp | null;
350
+ /**
351
+ * Converts a JavaScript Date into a formatted Timestamp using UTC fields.
352
+ *
353
+ * Use this when server and client output should agree on the same UTC calendar
354
+ * and time fields for a native Date instant.
355
+ *
356
+ * @param {Date} date JavaScript Date to convert.
357
+ * @returns {Timestamp} Formatted Timestamp object, or `null` for invalid input.
345
358
  */
346
- export declare function parseDate(date: Date, utc?: boolean): Timestamp | null;
359
+ export declare function parseDateUTC(date: Date): Timestamp | null;
347
360
  /**
348
361
  * Pads a number to a requested string length.
349
362
  *
@@ -367,22 +380,51 @@ export declare function isLeapYear(year: number): boolean;
367
380
  */
368
381
  export declare function daysInMonth(year: number, month: number): number;
369
382
  /**
370
- * Returns a {@link Timestamp} of next day from passed in {@link Timestamp}
371
- * @param {Timestamp} timestamp The {@link Timestamp} to use
372
- * @returns {Timestamp} A new {@link Timestamp} representing the next day
383
+ * Returns a new Timestamp for the next calendar day.
384
+ *
385
+ * @param {Timestamp} timestamp Base Timestamp object.
386
+ * @returns {Timestamp} New Timestamp representing the next day.
373
387
  */
374
388
  export declare function nextDay(timestamp: Timestamp): Timestamp;
375
389
  /**
376
- * Returns a {@link Timestamp} of previous day from passed in {@link Timestamp}
377
- * @param {Timestamp} timestamp The {@link Timestamp} to use
378
- * @returns {Timestamp} A new {@link Timestamp} representing the previous day
390
+ * Returns a new Timestamp for the previous calendar day.
391
+ *
392
+ * @param {Timestamp} timestamp Base Timestamp object.
393
+ * @returns {Timestamp} New Timestamp representing the previous day.
379
394
  */
380
395
  export declare function prevDay(timestamp: Timestamp): Timestamp;
381
396
  /**
382
- * Returns today's date
397
+ * Returns today's date using the host runtime timezone.
398
+ *
399
+ * For SSR or static rendering, server and client runtimes can produce different
400
+ * values when they run in different timezones. Use todayUTC() when the app
401
+ * wants a stable UTC calendar date instead.
402
+ *
383
403
  * @returns {string} Date string in the form `YYYY-MM-DD`
384
404
  */
385
405
  export declare function today(): string;
406
+ /**
407
+ * Returns today's date using UTC calendar fields.
408
+ *
409
+ * Pass a Date fixture to make SSR, tests, and hydration-sensitive render paths
410
+ * deterministic. This helper reads UTC fields only; it does not convert an
411
+ * existing Timestamp or timezone-suffixed string.
412
+ *
413
+ * @param {Date} date Date source to read. Defaults to the current Date.
414
+ * @returns {string} UTC date string in the form `YYYY-MM-DD`
415
+ */
416
+ export declare function todayUTC(date?: Date): string;
417
+ /**
418
+ * Returns the current date-time as an immutable Timestamp using UTC fields.
419
+ *
420
+ * Use this when server and client output should agree on UTC calendar and time
421
+ * values. For fully deterministic SSR output, pass a Date captured by the
422
+ * caller instead of allowing each runtime to create its own current Date.
423
+ *
424
+ * @param {Date} date Date source to read. Defaults to the current Date.
425
+ * @returns {Timestamp} Immutable Timestamp built from UTC fields.
426
+ */
427
+ export declare function nowUTC(date?: Date): Timestamp;
386
428
  /**
387
429
  * Takes a date string ('YYYY-MM-DD') and validates if it is today's date
388
430
  * @param {string} date Date string in the form 'YYYY-MM-DD'
@@ -390,33 +432,44 @@ export declare function today(): string;
390
432
  */
391
433
  export declare function isToday(date: string): boolean;
392
434
  /**
393
- * Returns the start of the week give a {@link Timestamp} and weekdays (in which it finds the day representing the start of the week).
394
- * If today {@link Timestamp} is passed in then this is used to update relative information in the returned {@link Timestamp}.
395
- * @param {Timestamp} timestamp The {@link Timestamp} to use to find the start of the week
435
+ * Checks whether a date string matches today's UTC date.
436
+ *
437
+ * Pass a Date fixture when SSR, tests, or hydration-sensitive render paths need
438
+ * deterministic behavior.
439
+ *
440
+ * @param {string} date Date string in the form `YYYY-MM-DD`.
441
+ * @param {Date} now Date source to read. Defaults to the current Date.
442
+ * @returns {boolean} True when the date matches the UTC date.
443
+ */
444
+ export declare function isTodayUTC(date: string, now?: Date): boolean;
445
+ /**
446
+ * Returns the start of the week for a Timestamp and weekday set.
447
+ * If a current Timestamp is provided, the returned Timestamp includes updated relative information.
448
+ * @param {Timestamp} timestamp The Timestamp to use to find the start of the week
396
449
  * @param {number[]} weekdays The array is [0,1,2,3,4,5,6] where 0=Sunday and 6=Saturday
397
- * @param {Timestamp=} today If passed in then the {@link Timestamp} is updated with relative information
398
- * @returns {Timestamp} A new {@link Timestamp} representing the start of the week
450
+ * @param {Timestamp=} today Current timestamp used to update relative information
451
+ * @returns {Timestamp} A new Timestamp representing the start of the week
399
452
  */
400
453
  export declare function getStartOfWeek(timestamp: Timestamp, weekdays: number[], today: Timestamp): Timestamp;
401
454
  /**
402
- * Returns the end of the week give a {@link Timestamp} and weekdays (in which it finds the day representing the last of the week).
403
- * If today {@link Timestamp} is passed in then this is used to update relative information in the returned {@link Timestamp}.
404
- * @param {Timestamp} timestamp The {@link Timestamp} to use to find the end of the week
455
+ * Returns the end of the week for a Timestamp and weekday set.
456
+ * If a current Timestamp is provided, the returned Timestamp includes updated relative information.
457
+ * @param {Timestamp} timestamp The Timestamp to use to find the end of the week
405
458
  * @param {number[]} weekdays The array is [0,1,2,3,4,5,6] where 0=Sunday and 6=Saturday
406
- * @param {Timestamp=} today If passed in then the {@link Timestamp} is updated with relative information
407
- * @returns {Timestamp} A new {@link Timestamp} representing the end of the week
459
+ * @param {Timestamp=} today Current timestamp used to update relative information
460
+ * @returns {Timestamp} A new Timestamp representing the end of the week
408
461
  */
409
462
  export declare function getEndOfWeek(timestamp: Timestamp, weekdays: number[], today: Timestamp): Timestamp;
410
463
  /**
411
- * Finds the start of the month based on the passed in {@link Timestamp}
412
- * @param {Timestamp} timestamp The {@link Timestamp} to use to find the start of the month
413
- * @returns {Timestamp} A {@link Timestamp} of the start of the month
464
+ * Finds the start of the month based on the passed in Timestamp
465
+ * @param {Timestamp} timestamp The Timestamp to use to find the start of the month
466
+ * @returns {Timestamp} A Timestamp of the start of the month
414
467
  */
415
468
  export declare function getStartOfMonth(timestamp: Timestamp): Timestamp;
416
469
  /**
417
- * Finds the end of the month based on the passed in {@link Timestamp}
418
- * @param {Timestamp} timestamp The {@link Timestamp} to use to find the end of the month
419
- * @returns {Timestamp} A {@link Timestamp} of the end of the month
470
+ * Finds the end of the month based on the passed in Timestamp
471
+ * @param {Timestamp} timestamp The Timestamp to use to find the end of the month
472
+ * @returns {Timestamp} A Timestamp of the end of the month
420
473
  */
421
474
  export declare function getEndOfMonth(timestamp: Timestamp): Timestamp;
422
475
  /**
@@ -433,76 +486,88 @@ export declare function parseTime(input: number | string | {
433
486
  minute: number;
434
487
  }): number | false;
435
488
  /**
436
- * Compares two {@link Timestamp}s for exactness
437
- * @param {Timestamp} ts1 The first {@link Timestamp}
438
- * @param {Timestamp} ts2 The second {@link Timestamp}
439
- * @returns {boolean} True if the two {@link Timestamp}s are an exact match
489
+ * Compares two Timestamp objects for exact date, time, and timezone equality.
490
+ *
491
+ * @param {Timestamp} ts1 First Timestamp object.
492
+ * @param {Timestamp} ts2 Second Timestamp object.
493
+ * @returns {boolean} True when both timestamps match exactly.
440
494
  */
441
495
  export declare function compareTimestamps(ts1: Timestamp, ts2: Timestamp): boolean;
442
496
  /**
443
- * Compares the date of two {@link Timestamp}s that have been updated with relative data
444
- * @param {Timestamp} ts1 The first {@link Timestamp}
445
- * @param {Timestamp} ts2 The second {@link Timestamp}
446
- * @returns {boolean} True if the two dates are the same
497
+ * Compares the calendar date portion of two Timestamp objects.
498
+ *
499
+ * @param {Timestamp} ts1 First Timestamp object.
500
+ * @param {Timestamp} ts2 Second Timestamp object.
501
+ * @returns {boolean} True when both dates are the same.
447
502
  */
448
503
  export declare function compareDate(ts1: Timestamp, ts2: Timestamp): boolean;
449
504
  /**
450
- * Compares the time of two {@link Timestamp}s that have been updated with relative data
451
- * @param {Timestamp} ts1 The first {@link Timestamp}
452
- * @param {Timestamp} ts2 The second {@link Timestamp}
453
- * @returns {boolean} True if the two times are an exact match
505
+ * Compares the formatted time portion of two Timestamp objects.
506
+ *
507
+ * @param {Timestamp} ts1 First Timestamp object.
508
+ * @param {Timestamp} ts2 Second Timestamp object.
509
+ * @returns {boolean} True when both times are the same.
454
510
  */
455
511
  export declare function compareTime(ts1: Timestamp, ts2: Timestamp): boolean;
456
512
  /**
457
- * Compares the date and time of two {@link Timestamp}s that have been updated with relative data
458
- * @param {Timestamp} ts1 The first {@link Timestamp}
459
- * @param {Timestamp} ts2 The second {@link Timestamp}
460
- * @returns {boolean} True if the date and time are an exact match
513
+ * Compares the formatted date and time portions of two Timestamp objects.
514
+ *
515
+ * @param {Timestamp} ts1 First Timestamp object.
516
+ * @param {Timestamp} ts2 Second Timestamp object.
517
+ * @returns {boolean} True when both date-time values are the same.
461
518
  */
462
519
  export declare function compareDateTime(ts1: Timestamp, ts2: Timestamp): boolean;
463
520
  /**
464
- * High-level parser that converts a string to a fully formatted {@link Timestamp}.
521
+ * Converts a supported date or date-time string into a formatted Timestamp object.
465
522
  *
466
523
  * If `now` is supplied, the returned timestamp also includes relative flags
467
524
  * such as `past`, `current`, `future`, and `currentWeekday`.
468
525
  *
469
- * @param {string} input In the form `YYYY-MM-DD`, `YYYY-MM-DD HH:mm:ss`, or an ISO-like date time with optional milliseconds and timezone suffix.
470
- * @param {Timestamp} now A {@link Timestamp} to use for relative data updates
471
- * @returns {Timestamp} The {@link Timestamp.date} will be filled in as well as the {@link Timestamp.time} if a time is supplied and formatted fields (doy, weekday, workweek, etc). If 'now' is supplied, then relative data will also be updated.
526
+ * @param {string} input Date or date-time string, such as `YYYY-MM-DD`, `YYYY-MM-DD HH:mm:ss`, or an ISO-like value with optional milliseconds and timezone suffix.
527
+ * @param {Timestamp} now Optional Timestamp used to calculate relative flags.
528
+ * @returns {Timestamp} Formatted Timestamp object, or `null` when the input cannot be parsed.
472
529
  */
473
530
  export declare function parseTimestamp(input: string, now?: Timestamp | null): Timestamp | null;
474
531
  /**
475
- * Converts a {@link Timestamp} into a numeric date identifier based on the passed {@link Timestamp}'s date
476
- * @param {Timestamp} timestamp The {@link Timestamp} to use
477
- * @returns {number} The numeric date identifier
532
+ * Converts a Timestamp date into a sortable numeric identifier.
533
+ *
534
+ * @param {Timestamp} timestamp Timestamp object to read.
535
+ * @returns {number} Numeric date identifier.
478
536
  */
479
537
  export declare function getDayIdentifier(timestamp: Timestamp): number;
480
538
  /**
481
- * Converts a {@link Timestamp} into a numeric time identifier based on the passed {@link Timestamp}'s time
482
- * @param {Timestamp} timestamp The {@link Timestamp} to use
483
- * @returns {number} The numeric time identifier
539
+ * Converts a Timestamp time into a sortable numeric identifier.
540
+ *
541
+ * @param {Timestamp} timestamp Timestamp object to read.
542
+ * @returns {number} Numeric time identifier.
484
543
  */
485
544
  export declare function getTimeIdentifier(timestamp: Timestamp): number;
486
545
  /**
487
- * Converts a {@link Timestamp} into a numeric date and time identifier based on the passed {@link Timestamp}'s date and time
488
- * @param {Timestamp} timestamp The {@link Timestamp} to use
489
- * @returns {number} The numeric date+time identifier
546
+ * Converts a Timestamp date and time into a sortable numeric identifier.
547
+ *
548
+ * @param {Timestamp} timestamp Timestamp object to read.
549
+ * @returns {number} Numeric date-time identifier.
490
550
  */
491
551
  export declare function getDayTimeIdentifier(timestamp: Timestamp): number;
492
552
  /**
493
- * Returns the difference between two {@link Timestamp}s
494
- * @param {Timestamp} ts1 The first {@link Timestamp}
495
- * @param {Timestamp} ts2 The second {@link Timestamp}
553
+ * Returns the difference between two Timestamps
554
+ * @param {Timestamp} ts1 The first Timestamp
555
+ * @param {Timestamp} ts2 The second Timestamp
496
556
  * @param {boolean=} strict Optional flag to not to return negative numbers
497
557
  * @returns {number} The difference
498
558
  */
499
559
  export declare function diffTimestamp(ts1: Timestamp, ts2: Timestamp, strict?: boolean): number;
500
560
  /**
501
- * Updates a {@link Timestamp} with relative data (past, current and future)
502
- * @param {Timestamp} timestamp The {@link Timestamp} that needs relative data updated
503
- * @param {Timestamp} now {@link Timestamp} that represents the current date (optional time)
504
- * @param {boolean=} time Optional flag to include time ('timestamp' and 'now' params should have time values)
505
- * @returns {Timestamp} A new {@link Timestamp}
561
+ * Returns a Timestamp with relative flags compared to a supplied `now` value.
562
+ *
563
+ * The returned object includes `past`, `current`, `future`, and
564
+ * `currentWeekday` flags. Pass `true` for `time` when both values should be
565
+ * compared at time-of-day precision.
566
+ *
567
+ * @param {Timestamp} timestamp Timestamp object to update.
568
+ * @param {Timestamp} now Timestamp representing the comparison point.
569
+ * @param {boolean=} time Include time-of-day in the comparison when true.
570
+ * @returns {Timestamp} New Timestamp object with relative flags.
506
571
  */
507
572
  export declare function updateRelative(timestamp: Timestamp, now: Timestamp, time?: boolean): Timestamp;
508
573
  /**
@@ -511,144 +576,156 @@ export declare function updateRelative(timestamp: Timestamp, now: Timestamp, tim
511
576
  * The returned timestamp has updated hour/minute fields and clears second and
512
577
  * millisecond precision because this helper is minute-oriented.
513
578
  *
514
- * @param {Timestamp} timestamp The {@link Timestamp} to transform
579
+ * @param {Timestamp} timestamp The Timestamp to transform
515
580
  * @param {number} minutes The number of minutes to set from midnight
516
- * @param {Timestamp=} now Optional {@link Timestamp} representing current date and time
517
- * @returns {Timestamp} A new {@link Timestamp}
581
+ * @param {Timestamp=} now Optional Timestamp representing current date and time
582
+ * @returns {Timestamp} A new Timestamp
518
583
  */
519
584
  export declare function updateMinutes(timestamp: Timestamp, minutes: number, now?: Timestamp | null): Timestamp;
520
585
  /**
521
- * Updates the {@link Timestamp} with the weekday
522
- * @param {Timestamp} timestamp The {@link Timestamp} to transform
586
+ * Updates the Timestamp with the weekday
587
+ * @param {Timestamp} timestamp The Timestamp to transform
523
588
  * @returns A new Timestamp
524
589
  */
525
590
  export declare function updateWeekday(timestamp: Timestamp): Timestamp;
526
591
  /**
527
- * Updates the {@link Timestamp} with the day of the year (doy)
528
- * @param {Timestamp} timestamp The {@link Timestamp} to transform
592
+ * Updates the Timestamp with the day of the year (doy)
593
+ * @param {Timestamp} timestamp The Timestamp to transform
529
594
  * @returns A new Timestamp
530
595
  */
531
596
  export declare function updateDayOfYear(timestamp: Timestamp): Timestamp;
532
597
  /**
533
- * Updates the {@link Timestamp} with the workweek
534
- * @param {Timestamp} timestamp The {@link Timestamp} to transform
535
- * @returns A new {@link Timestamp}
598
+ * Updates the Timestamp with the workweek
599
+ * @param {Timestamp} timestamp The Timestamp to transform
600
+ * @returns A new Timestamp
536
601
  */
537
602
  export declare function updateWorkWeek(timestamp: Timestamp): Timestamp;
538
603
  /**
539
- * Updates the passed {@link Timestamp} with disabled, if needed
540
- * @param {Timestamp} timestamp The {@link Timestamp} to transform
604
+ * Updates the passed Timestamp with disabled, if needed
605
+ * @param {Timestamp} timestamp The Timestamp to transform
541
606
  * @param {string} [disabledBefore] In `YYYY-MM-DD` format
542
607
  * @param {string} [disabledAfter] In `YYYY-MM-DD` format
543
608
  * @param {number[]} [disabledWeekdays] An array of numbers representing weekdays [0 = Sun, ..., 6 = Sat]
544
609
  * @param {DisabledDays} [disabledDays] An array of days in 'YYYY-MM-DD' format. If an array with a pair of dates is in first array, then this is treated as a range. Object entries can include date/from/to plus color metadata.
545
- * @returns A new {@link Timestamp}
610
+ * @returns A new Timestamp
546
611
  */
547
612
  export declare function updateDisabled(timestamp: Timestamp, disabledBefore?: string, disabledAfter?: string, disabledWeekdays?: number[], disabledDays?: DisabledDays): Timestamp;
548
613
  /**
549
- * Updates the passed {@link Timestamp} with formatted data (time string, date string, weekday, day of year and workweek)
550
- * @param {Timestamp} timestamp The {@link Timestamp} to transform
551
- * @returns A new {@link Timestamp}
614
+ * Updates the passed Timestamp with formatted data (time string, date string, weekday, day of year and workweek)
615
+ * @param {Timestamp} timestamp The Timestamp to transform
616
+ * @returns A new Timestamp
552
617
  */
553
618
  export declare function updateFormatted(timestamp: Timestamp): Timestamp;
554
619
  /**
555
- * Returns day of the year (doy) for the passed in {@link Timestamp}
556
- * @param {Timestamp} timestamp The {@link Timestamp} to use
620
+ * Returns day of the year (doy) for the passed in Timestamp
621
+ * @param {Timestamp} timestamp The Timestamp to use
557
622
  * @returns {number} The day of the year
558
623
  */
559
624
  export declare function getDayOfYear(timestamp: Timestamp): number | void;
560
625
  /**
561
- * Returns workweek for the passed in {@link Timestamp}
562
- * @param {Timestamp} timestamp The {@link Timestamp} to use
626
+ * Returns workweek for the passed in Timestamp
627
+ * @param {Timestamp} timestamp The Timestamp to use
563
628
  * @returns {number} The work week
564
629
  */
565
630
  export declare function getWorkWeek(timestamp: Timestamp): number;
566
631
  /**
567
- * Returns weekday for the passed in {@link Timestamp}
568
- * @param {Timestamp} timestamp The {@link Timestamp} to use
632
+ * Returns weekday for the passed in Timestamp
633
+ * @param {Timestamp} timestamp The Timestamp to use
569
634
  * @returns {number} The weekday
570
635
  */
571
636
  export declare function getWeekday(timestamp: Timestamp): number;
572
637
  /**
573
- * Makes a copy of the passed in {@link Timestamp}
574
- * @param {Timestamp} timestamp The original {@link Timestamp}
575
- * @returns {Timestamp} A copy of the original {@link Timestamp}
638
+ * Returns an immutable copy of a Timestamp object.
639
+ *
640
+ * @param {Timestamp} timestamp Timestamp object to copy.
641
+ * @returns {Timestamp} Frozen Timestamp copy.
576
642
  */
577
643
  export declare function copyTimestamp(timestamp: Timestamp): Timestamp;
578
644
  /**
579
- * Used internally to convert {@link Timestamp} used with 'parsed' or 'parseDate' so the 'date' portion of the {@link Timestamp} is correct.
580
- * @param {Timestamp} timestamp The (raw) {@link Timestamp}
581
- * @returns {string} A formatted date ('YYYY-MM-DD')
645
+ * Formats the date portion of a Timestamp object.
646
+ *
647
+ * @param {Timestamp} timestamp Timestamp object to format.
648
+ * @returns {string} Date string such as `YYYY-MM-DD`.
582
649
  */
583
650
  export declare function getDate(timestamp: Timestamp): string;
584
651
  /**
585
- * Used internally to convert {@link Timestamp} with 'parsed' or 'parseDate' so the 'time' portion of the {@link Timestamp} is correct.
586
- * @param {Timestamp} timestamp The (raw) {@link Timestamp}
587
- * @returns {string} A formatted time ('hh:mm')
652
+ * Formats the time portion of a Timestamp object.
653
+ *
654
+ * Minute precision is formatted as `HH:mm`; second precision as `HH:mm:ss`;
655
+ * millisecond precision as `HH:mm:ss.SSS`.
656
+ *
657
+ * @param {Timestamp} timestamp Timestamp object to format.
658
+ * @returns {string} Time string, or an empty string when the timestamp has no time.
588
659
  */
589
660
  export declare function getTime(timestamp: Timestamp): string;
590
661
  /**
591
- * Returns a formatted string date and time ('YYYY-YY-MM hh:mm')
592
- * @param {Timestamp} timestamp The {@link Timestamp}
593
- * @returns {string} A formatted date time ('YYYY-MM-DD HH:mm')
662
+ * Formats a Timestamp as date plus time.
663
+ *
664
+ * @param {Timestamp} timestamp Timestamp object to format.
665
+ * @returns {string} Date-time string such as `YYYY-MM-DD HH:mm`.
594
666
  */
595
667
  export declare function getDateTime(timestamp: Timestamp): string;
596
668
  /**
597
- * An alias for {relativeDays}
598
- * @param {Timestamp} timestamp The {@link Timestamp} to transform
669
+ * Alias for relativeDays.
670
+ * @param {Timestamp} timestamp The Timestamp to transform
599
671
  * @param {function} [mover=nextDay] The mover function to use (ie: {nextDay} or {prevDay}).
600
672
  * @param {number} [days=1] The number of days to move.
601
673
  * @param {number[]} [allowedWeekdays=[ 0, 1, 2, 3, 4, 5, 6 ]] An array of numbers representing the weekdays. ie: [0 = Sun, ..., 6 = Sat].
602
- * @returns A new {@link Timestamp}
674
+ * @returns A new Timestamp
603
675
  */
604
676
  export declare function moveRelativeDays(timestamp: Timestamp, mover?: typeof nextDay, days?: number, allowedWeekdays?: number[]): Timestamp;
605
677
  /**
606
- * Moves the {@link Timestamp} the number of relative days
607
- * @param {Timestamp} timestamp The {@link Timestamp} to transform
678
+ * Moves the Timestamp the number of relative days
679
+ * @param {Timestamp} timestamp The Timestamp to transform
608
680
  * @param {function} [mover=nextDay] The mover function to use (ie: {nextDay} or {prevDay}).
609
681
  * @param {number} [days=1] The number of days to move.
610
682
  * @param {number[]} [allowedWeekdays=[ 0, 1, 2, 3, 4, 5, 6 ]] An array of numbers representing the weekdays. ie: [0 = Sun, ..., 6 = Sat].
611
- * @returns A new {@link Timestamp}
683
+ * @returns A new Timestamp
612
684
  */
613
685
  export declare function relativeDays(timestamp: Timestamp, mover?: typeof nextDay, days?: number, allowedWeekdays?: number[]): Timestamp;
614
686
  /**
615
- * Finds the specified weekday (forward or back) based on the {@link Timestamp}
616
- * @param {Timestamp} timestamp The {@link Timestamp} to transform
687
+ * Finds the specified weekday (forward or back) based on the Timestamp
688
+ * @param {Timestamp} timestamp The Timestamp to transform
617
689
  * @param {number} weekday The weekday number (Sun = 0, ..., Sat = 6)
618
690
  * @param {function} [mover=nextDay] The function to use ({prevDay} or {nextDay}).
619
691
  * @param {number} [maxDays=6] The number of days to look forward or back.
620
- * @returns A new {@link Timestamp}
692
+ * @returns A new Timestamp
621
693
  */
622
694
  export declare function findWeekday(timestamp: Timestamp, weekday: number, mover?: typeof nextDay, maxDays?: number): Timestamp;
623
695
  /**
624
- * Creates an array of {@link Timestamp}s based on start and end params
625
- * @param {Timestamp} start The starting {@link Timestamp}
626
- * @param {Timestamp} end The ending {@link Timestamp}
627
- * @param {Timestamp} now The relative day
628
- * @param {number[]} weekdays An array of numbers (representing days of the week) that are 0 (=Sunday) to 6 (=Saturday)
629
- * @param {string} [disabledBefore] Days before this date are disabled (YYYY-MM-DD)
630
- * @param {string} [disabledAfter] Days after this date are disabled (YYYY-MM-DD)
631
- * @param {number[]} [disabledWeekdays] An array representing weekdays that are disabled [0 = Sun, ..., 6 = Sat]
632
- * @param {DisabledDays} [disabledDays] An array of days in 'YYYY-MM-DD' format. If an array with a pair of dates is in first array, then this is treated as a range.
633
- * @param {number} [max=42] Max days to do
634
- * @param {number} [min=0] Min days to do
635
- * @returns {Timestamp[]} The requested array of {@link Timestamp}s
696
+ * Creates an inclusive list of Timestamp days between start and end.
697
+ *
698
+ * The returned days are formatted, marked with relative flags against `now`,
699
+ * and can include disabled metadata when disabled options are supplied.
700
+ *
701
+ * @param {Timestamp} start First day in the list.
702
+ * @param {Timestamp} end Last day boundary for the list.
703
+ * @param {Timestamp} now Timestamp used to calculate relative flags.
704
+ * @param {number[]} weekdays Weekday numbers to include, from `0` Sunday to `6` Saturday.
705
+ * @param {string} [disabledBefore] Disable days before this `YYYY-MM-DD` date.
706
+ * @param {string} [disabledAfter] Disable days after this `YYYY-MM-DD` date.
707
+ * @param {number[]} [disabledWeekdays] Weekday numbers to mark disabled.
708
+ * @param {DisabledDays} [disabledDays] Specific dates or date ranges to mark disabled.
709
+ * @param {number} [max=42] Maximum number of days to return.
710
+ * @param {number} [min=0] Minimum number of days to return.
711
+ * @returns {Timestamp[]} Timestamp days.
636
712
  */
637
713
  export declare function createDayList(start: Timestamp, end: Timestamp, now: Timestamp, weekdays?: number[], disabledBefore?: string | undefined, disabledAfter?: string | undefined, disabledWeekdays?: number[], disabledDays?: DisabledDays, max?: number, min?: number): Timestamp[];
638
714
  /**
639
- * Creates an array of interval {@link Timestamp}s based on params
640
- * @param {Timestamp} timestamp The starting {@link Timestamp}
641
- * @param {number} first The starting interval time
642
- * @param {number} minutes How many minutes between intervals (ie: 60, 30, 15 would be common ones)
643
- * @param {number} count The number of intervals needed
644
- * @param {Timestamp} now A relative {@link Timestamp} with time
645
- * @returns {Timestamp[]} The requested array of interval {@link Timestamp}s
715
+ * Creates an array of interval Timestamp objects for one day.
716
+ *
717
+ * @param {Timestamp} timestamp Base date for the intervals.
718
+ * @param {number} first Starting interval index.
719
+ * @param {number} minutes Minutes between intervals, such as 60, 30, or 15.
720
+ * @param {number} count Number of intervals to create.
721
+ * @param {Timestamp} now Timestamp used to calculate relative flags.
722
+ * @returns {Timestamp[]} Interval Timestamp objects.
646
723
  */
647
724
  export declare function createIntervalList(timestamp: Timestamp, first: number, minutes: number, count: number, now: Timestamp): Timestamp[];
648
725
  /**
649
726
  * Callback that returns `Intl.DateTimeFormat` options for a timestamp.
650
727
  *
651
- * Used by {@link createNativeLocaleFormatter} to let callers switch between
728
+ * Used by createNativeLocaleFormatter to let callers switch between
652
729
  * long and short formatting styles per timestamp.
653
730
  */
654
731
  export type LocaleFormatter = (_timestamp: Timestamp, _short: boolean) => Intl.DateTimeFormatOptions;
@@ -661,50 +738,67 @@ export type WeekdayFormatter = (_weekday: keyof typeof weekdayDateMap, _type: st
661
738
  */
662
739
  export type MonthFormatter = (_month: number, _type?: string, _locale?: string) => string;
663
740
  /**
664
- * @callback getOptions
665
- * @param {Timestamp} timestamp A {@link Timestamp} object
666
- * @param {boolean} short True if using short options
667
- * @returns {Object} An Intl object representing options to be used
668
- */
669
- /**
670
- * @callback formatter
671
- * @param {Timestamp} timestamp The {@link Timestamp} being used
672
- * @param {boolean} short If short format is being requested
673
- * @returns {string} The localized string of the formatted {@link Timestamp}
674
- */
675
- /**
676
- * Returns a locale formatter backed by `Intl.DateTimeFormat`.
741
+ * Returns a host-local locale formatter backed by `Intl.DateTimeFormat`.
677
742
  *
678
743
  * The helper is SSR-safe: if `Intl.DateTimeFormat` is unavailable in a target
679
744
  * runtime, it returns a formatter that produces an empty string instead of
680
745
  * throwing during module load.
681
746
  *
747
+ * Use `createNativeLocaleFormatterUTC()` when Timestamp values should be read
748
+ * as UTC fields before formatting.
749
+ *
682
750
  * @param {string} locale The locale to use (ie: en-US)
683
751
  * @param {getOptions} cb The function to call for options. This function should return an Intl formatted object. The function is passed (timestamp, short).
684
752
  * @returns {formatter} The function has params (timestamp, short). The short is to use the short options.
685
753
  */
686
754
  export declare function createNativeLocaleFormatter(locale: string, cb: LocaleFormatter): (_timestamp: Timestamp, _short: boolean) => string;
687
755
  /**
688
- * Makes a JavaScript Date from the passed {@link Timestamp}
689
- * @param {Timestamp} timestamp The {@link Timestamp} to use
690
- * @param {boolean} utc True to get Date object using UTC
691
- * @returns {Date} A JavaScript Date
756
+ * Returns a UTC locale formatter backed by `Intl.DateTimeFormat`.
757
+ *
758
+ * This helper constructs the native `Date` with UTC fields before formatting.
759
+ * Pair it with `timeZone: "UTC"` when calendar labels must remain pinned to
760
+ * the Timestamp's UTC date instead of the viewer's local timezone.
761
+ *
762
+ * @param {string} locale The locale to use (ie: en-US)
763
+ * @param {getOptions} cb The function to call for options. This function should return an Intl formatted object. The function is passed (timestamp, short).
764
+ * @returns {formatter} The function has params (timestamp, short). The short is to use the short options.
765
+ */
766
+ export declare function createNativeLocaleFormatterUTC(locale: string, cb: LocaleFormatter): (_timestamp: Timestamp, _short: boolean) => string;
767
+ /**
768
+ * Converts a Timestamp date into a host-local JavaScript Date.
769
+ *
770
+ * @param {Timestamp} timestamp Timestamp object to convert.
771
+ * @returns {Date} Host-local JavaScript Date object.
772
+ */
773
+ export declare function makeDate(timestamp: Timestamp): Date;
774
+ /**
775
+ * Converts a Timestamp date into a UTC JavaScript Date.
776
+ *
777
+ * @param {Timestamp} timestamp Timestamp object to convert.
778
+ * @returns {Date} JavaScript Date object built with `Date.UTC()`.
779
+ */
780
+ export declare function makeDateUTC(timestamp: Timestamp): Date;
781
+ /**
782
+ * Converts a Timestamp date and time into a host-local JavaScript Date.
783
+ *
784
+ * @param {Timestamp} timestamp Timestamp object to convert.
785
+ * @returns {Date} Host-local JavaScript Date object.
692
786
  */
693
- export declare function makeDate(timestamp: Timestamp, utc?: boolean): Date;
787
+ export declare function makeDateTime(timestamp: Timestamp): Date;
694
788
  /**
695
- * Makes a JavaScript Date from the passed {@link Timestamp} (with time)
696
- * @param {Timestamp} timestamp The {@link Timestamp} to use
697
- * @param {boolean} utc True to get Date object using UTC
698
- * @returns {Date} A JavaScript Date
789
+ * Converts a Timestamp date and time into a UTC JavaScript Date.
790
+ *
791
+ * @param {Timestamp} timestamp Timestamp object to convert.
792
+ * @returns {Date} JavaScript Date object built with `Date.UTC()`.
699
793
  */
700
- export declare function makeDateTime(timestamp: Timestamp, utc?: boolean): Date;
794
+ export declare function makeDateTimeUTC(timestamp: Timestamp): Date;
701
795
  /**
702
- * Converts a {@link Timestamp} to a local JavaScript `Date`.
796
+ * Converts a Timestamp to a local JavaScript Date.
703
797
  *
704
- * This is equivalent to `makeDateTime(timestamp, false)`.
798
+ * This is equivalent to `makeDateTime(timestamp)`.
705
799
  *
706
- * @param {Timestamp} timestamp The {@link Timestamp} to convert
707
- * @returns {Date} A local JavaScript Date
800
+ * @param {Timestamp} timestamp Timestamp object to convert.
801
+ * @returns {Date} Local JavaScript Date object.
708
802
  */
709
803
  export declare function getDateObject(timestamp: Timestamp): Date;
710
804
  /**
@@ -716,39 +810,43 @@ export declare function getDateObject(timestamp: Timestamp): Date;
716
810
  */
717
811
  export declare function validateNumber(input: string | number): boolean;
718
812
  /**
719
- * Given an array of {@link Timestamp}s, finds the max date (and possible time)
720
- * @param {Timestamp[]} timestamps This is an array of {@link Timestamp}s
721
- * @param {boolean=} useTime Default false; if true, uses time in the comparison as well
722
- * @returns The {@link Timestamp} with the highest date (and possibly time) value
813
+ * Finds the latest Timestamp in an array.
814
+ *
815
+ * @param {Timestamp[]} timestamps Timestamp objects to compare.
816
+ * @param {boolean=} useTime Include time-of-day in the comparison when true.
817
+ * @returns Latest Timestamp object.
723
818
  */
724
819
  export declare function maxTimestamp(timestamps: Timestamp[], useTime?: boolean): Timestamp;
725
820
  /**
726
- * Given an array of {@link Timestamp}s, finds the min date (and possible time)
727
- * @param {Timestamp[]} timestamps This is an array of {@link Timestamp}s
728
- * @param {boolean=} useTime Default false; if true, uses time in the comparison as well
729
- * @returns The {@link Timestamp} with the lowest date (and possibly time) value
821
+ * Finds the earliest Timestamp in an array.
822
+ *
823
+ * @param {Timestamp[]} timestamps Timestamp objects to compare.
824
+ * @param {boolean=} useTime Include time-of-day in the comparison when true.
825
+ * @returns Earliest Timestamp object.
730
826
  */
731
827
  export declare function minTimestamp(timestamps: Timestamp[], useTime?: boolean): Timestamp;
732
828
  /**
733
- * Determines if the passed {@link Timestamp} is between (or equal) to two {@link Timestamp}s (range)
734
- * @param {Timestamp} timestamp The {@link Timestamp} for testing
735
- * @param {Timestamp} startTimestamp The starting {@link Timestamp}
736
- * @param {Timestamp} endTimestamp The ending {@link Timestamp}
737
- * @param {boolean=} useTime If true, use time from the {@link Timestamp}s
738
- * @returns {boolean} True if {@link Timestamp} is between (or equal) to two {@link Timestamp}s (range)
829
+ * Checks whether a Timestamp falls inside an inclusive range.
830
+ *
831
+ * @param {Timestamp} timestamp Timestamp object to test.
832
+ * @param {Timestamp} startTimestamp Inclusive start boundary.
833
+ * @param {Timestamp} endTimestamp Inclusive end boundary.
834
+ * @param {boolean=} useTime Include time-of-day in the comparison when true.
835
+ * @returns {boolean} True when the timestamp is inside the range.
739
836
  */
740
837
  export declare function isBetweenDates(timestamp: Timestamp, startTimestamp: Timestamp, endTimestamp: Timestamp, useTime?: boolean): boolean;
741
838
  /**
742
- * Determine if two ranges of {@link Timestamp}s overlap each other
743
- * @param {Timestamp} startTimestamp The starting {@link Timestamp} of first range
744
- * @param {Timestamp} endTimestamp The endinging {@link Timestamp} of first range
745
- * @param {Timestamp} firstTimestamp The starting {@link Timestamp} of second range
746
- * @param {Timestamp} lastTimestamp The ending {@link Timestamp} of second range
747
- * @returns {boolean} True if the two ranges overlap each other
839
+ * Checks whether two inclusive Timestamp ranges overlap.
840
+ *
841
+ * @param {Timestamp} startTimestamp Start of the first range.
842
+ * @param {Timestamp} endTimestamp End of the first range.
843
+ * @param {Timestamp} firstTimestamp Start of the second range.
844
+ * @param {Timestamp} lastTimestamp End of the second range.
845
+ * @returns {boolean} True when the ranges overlap.
748
846
  */
749
847
  export declare function isOverlappingDates(startTimestamp: Timestamp, endTimestamp: Timestamp, firstTimestamp: Timestamp, lastTimestamp: Timestamp): boolean;
750
848
  /**
751
- * Date and time offsets accepted by {@link addToDate} and {@link addToDateClamped}.
849
+ * Date and time offsets accepted by addToDate() and addToDateClamped().
752
850
  *
753
851
  * Positive values add time; negative values subtract time. The result is
754
852
  * normalized through JavaScript Date rules, so overflowing months, days,
@@ -787,11 +885,12 @@ export interface AddToDateOptions {
787
885
  /**
788
886
  * Adds or subtracts date/time units from a timestamp.
789
887
  *
790
- * This function returns a new frozen {@link Timestamp}; it does not mutate the
791
- * timestamp passed in.
888
+ * This function returns a new frozen Timestamp; it does not mutate the
889
+ * timestamp passed in. Invalid target dates are normalized through JavaScript
890
+ * Date rules, so month overflow can roll into the following month.
792
891
  *
793
- * @param {Timestamp} timestamp The {@link Timestamp} object
794
- * @param {Object} options configuration data
892
+ * @param {Timestamp} timestamp Timestamp object to offset.
893
+ * @param {Object} options Date/time units to add or subtract.
795
894
  * @param {number=} options.year If positive, adds years. If negative, removes years.
796
895
  * @param {number=} options.month If positive, adds months. If negative, removes month.
797
896
  * @param {number=} options.day If positive, adds days. If negative, removes days.
@@ -799,7 +898,7 @@ export interface AddToDateOptions {
799
898
  * @param {number=} options.minute If positive, adds minutes. If negative, removes minutes.
800
899
  * @param {number=} options.second If positive, adds seconds. If negative, removes seconds.
801
900
  * @param {number=} options.millisecond If positive, adds milliseconds. If negative, removes milliseconds.
802
- * @returns {Timestamp} A new normalized {@link Timestamp}
901
+ * @returns {Timestamp} New normalized Timestamp object.
803
902
  */
804
903
  export declare function addToDate(timestamp: Timestamp, options: AddToDateOptions): Timestamp;
805
904
  /**
@@ -811,11 +910,11 @@ export declare function addToDate(timestamp: Timestamp, options: AddToDateOption
811
910
  * March. Day and time offsets still use normal JavaScript Date normalization
812
911
  * after the year/month clamp is applied.
813
912
  *
814
- * This function returns a new frozen {@link Timestamp}; it does not mutate the
913
+ * This function returns a new frozen Timestamp; it does not mutate the
815
914
  * timestamp passed in.
816
915
  *
817
- * @param {Timestamp} timestamp The {@link Timestamp} object
818
- * @param {Object} options configuration data
916
+ * @param {Timestamp} timestamp Timestamp object to offset.
917
+ * @param {Object} options Date/time units to add or subtract.
819
918
  * @param {number=} options.year If positive, adds years. If negative, removes years.
820
919
  * @param {number=} options.month If positive, adds months. If negative, removes month.
821
920
  * @param {number=} options.day If positive, adds days. If negative, removes days.
@@ -823,20 +922,20 @@ export declare function addToDate(timestamp: Timestamp, options: AddToDateOption
823
922
  * @param {number=} options.minute If positive, adds minutes. If negative, removes minutes.
824
923
  * @param {number=} options.second If positive, adds seconds. If negative, removes seconds.
825
924
  * @param {number=} options.millisecond If positive, adds milliseconds. If negative, removes milliseconds.
826
- * @returns {Timestamp} A new normalized {@link Timestamp}
925
+ * @returns {Timestamp} New normalized Timestamp object.
827
926
  */
828
927
  export declare function addToDateClamped(timestamp: Timestamp, options: AddToDateOptions): Timestamp;
829
928
  /**
830
- * Returns number of days between two {@link Timestamp}s
831
- * @param {Timestamp} ts1 The first {@link Timestamp}
832
- * @param {Timestamp} ts2 The second {@link Timestamp}
929
+ * Returns number of days between two Timestamps
930
+ * @param {Timestamp} ts1 The first Timestamp
931
+ * @param {Timestamp} ts2 The second Timestamp
833
932
  * @returns Number of days
834
933
  */
835
934
  export declare function daysBetween(ts1: Timestamp, ts2: Timestamp): number;
836
935
  /**
837
- * Returns number of weeks between two {@link Timestamp}s
838
- * @param {Timestamp} ts1 The first {@link Timestamp}
839
- * @param {Timestamp} ts2 The second {@link Timestamp}
936
+ * Returns number of weeks between two Timestamps
937
+ * @param {Timestamp} ts1 The first Timestamp
938
+ * @param {Timestamp} ts2 The second Timestamp
840
939
  */
841
940
  export declare function weeksBetween(ts1: Timestamp, ts2: Timestamp): number;
842
941
  declare const weekdayDateMap: {
@@ -867,11 +966,11 @@ declare const weekdayDateMap: {
867
966
  */
868
967
  export declare function getWeekdayFormatter(): WeekdayFormatter;
869
968
  /**
870
- * Retrieves an array of localized weekday names.
969
+ * Retrieves localized weekday names.
871
970
  *
872
- * @param {string} type - The format type for the weekday names. Can be 'narrow', 'short', or 'long'.
873
- * @param {string} [locale] - The locale to use for formatting. If not provided, the default locale is used.
874
- * @returns {string[]} An array of localized weekday names in the specified format.
971
+ * @param {string} type Format type: `narrow`, `short`, or `long`.
972
+ * @param {string} locale Locale to use for formatting, such as `en-US`.
973
+ * @returns {string[]} Localized weekday names in Sunday-first order.
875
974
  */
876
975
  export declare function getWeekdayNames(type: string, locale: string): string[];
877
976
  /**
@@ -888,118 +987,12 @@ export declare function getWeekdayNames(type: string, locale: string): string[];
888
987
  */
889
988
  export declare function getMonthFormatter(): MonthFormatter;
890
989
  /**
891
- * Retrieves an array of localized month names.
990
+ * Retrieves localized month names.
892
991
  *
893
- * @param {string} type - The format type for the month names. Can be 'narrow', 'short', or 'long'.
894
- * @param {string} [locale] - The locale to use for formatting. If not provided, the default locale is used.
895
- * @returns {string[]} An array of localized month names in the specified format.
992
+ * @param {string} type Format type: `narrow`, `short`, or `long`.
993
+ * @param {string} locale Locale to use for formatting, such as `en-US`.
994
+ * @returns {string[]} Localized month names in January-first order.
896
995
  */
897
996
  export declare function getMonthNames(type: string, locale: string): string[];
898
- declare const _default: {
899
- PARSE_DATETIME: RegExp;
900
- PARSE_DATE: RegExp;
901
- PARSE_TIME: RegExp;
902
- DAYS_IN_MONTH: number[];
903
- DAYS_IN_MONTH_LEAP: number[];
904
- DAYS_IN_MONTH_MIN: number;
905
- DAYS_IN_MONTH_MAX: number;
906
- MONTH_MAX: number;
907
- MONTH_MIN: number;
908
- DAY_MIN: number;
909
- TIME_CONSTANTS: {
910
- MILLISECONDS_IN: {
911
- SECOND: number;
912
- MINUTE: number;
913
- HOUR: number;
914
- DAY: number;
915
- WEEK: number;
916
- };
917
- SECONDS_IN: {
918
- MINUTE: number;
919
- HOUR: number;
920
- DAY: number;
921
- WEEK: number;
922
- };
923
- MINUTES_IN: {
924
- MINUTE: number;
925
- HOUR: number;
926
- DAY: number;
927
- WEEK: number;
928
- };
929
- HOURS_IN: {
930
- DAY: number;
931
- WEEK: number;
932
- };
933
- DAYS_IN: {
934
- WEEK: number;
935
- };
936
- };
937
- DAYS_IN_WEEK: number;
938
- MINUTES_IN_HOUR: number;
939
- HOURS_IN_DAY: number;
940
- FIRST_HOUR: number;
941
- MILLISECONDS_IN_MINUTE: number;
942
- MILLISECONDS_IN_HOUR: number;
943
- MILLISECONDS_IN_DAY: number;
944
- MILLISECONDS_IN_WEEK: number;
945
- Timestamp: Timestamp;
946
- TimeObject: TimeObject;
947
- today: typeof today;
948
- getStartOfWeek: typeof getStartOfWeek;
949
- getEndOfWeek: typeof getEndOfWeek;
950
- getStartOfMonth: typeof getStartOfMonth;
951
- getEndOfMonth: typeof getEndOfMonth;
952
- parseTime: typeof parseTime;
953
- validateTimestamp: typeof validateTimestamp;
954
- parsed: typeof parsed;
955
- parseTimestamp: typeof parseTimestamp;
956
- parseDate: typeof parseDate;
957
- getDayIdentifier: typeof getDayIdentifier;
958
- getTimeIdentifier: typeof getTimeIdentifier;
959
- getDayTimeIdentifier: typeof getDayTimeIdentifier;
960
- diffTimestamp: typeof diffTimestamp;
961
- updateRelative: typeof updateRelative;
962
- updateMinutes: typeof updateMinutes;
963
- updateWeekday: typeof updateWeekday;
964
- updateDayOfYear: typeof updateDayOfYear;
965
- updateWorkWeek: typeof updateWorkWeek;
966
- updateDisabled: typeof updateDisabled;
967
- updateFormatted: typeof updateFormatted;
968
- getDayOfYear: typeof getDayOfYear;
969
- getWorkWeek: typeof getWorkWeek;
970
- getWeekday: typeof getWeekday;
971
- isLeapYear: typeof isLeapYear;
972
- daysInMonth: typeof daysInMonth;
973
- copyTimestamp: typeof copyTimestamp;
974
- padNumber: typeof padNumber;
975
- getDate: typeof getDate;
976
- getTime: typeof getTime;
977
- getDateTime: typeof getDateTime;
978
- nextDay: typeof nextDay;
979
- prevDay: typeof prevDay;
980
- relativeDays: typeof relativeDays;
981
- findWeekday: typeof findWeekday;
982
- createDayList: typeof createDayList;
983
- createIntervalList: typeof createIntervalList;
984
- createNativeLocaleFormatter: typeof createNativeLocaleFormatter;
985
- makeDate: typeof makeDate;
986
- makeDateTime: typeof makeDateTime;
987
- getDateObject: typeof getDateObject;
988
- validateNumber: typeof validateNumber;
989
- isBetweenDates: typeof isBetweenDates;
990
- isOverlappingDates: typeof isOverlappingDates;
991
- daysBetween: typeof daysBetween;
992
- weeksBetween: typeof weeksBetween;
993
- addToDate: typeof addToDate;
994
- addToDateClamped: typeof addToDateClamped;
995
- compareTimestamps: typeof compareTimestamps;
996
- compareDate: typeof compareDate;
997
- compareTime: typeof compareTime;
998
- compareDateTime: typeof compareDateTime;
999
- getWeekdayFormatter: typeof getWeekdayFormatter;
1000
- getWeekdayNames: typeof getWeekdayNames;
1001
- getMonthFormatter: typeof getMonthFormatter;
1002
- getMonthNames: typeof getMonthNames;
1003
- };
1004
- export default _default;
997
+ export {};
1005
998
  //# sourceMappingURL=index.d.ts.map