Files
klz-cables.com/.pnpm-store/v10/files/3b/47d21f5c739feefc7b5b2edf8b15035e8a698b343c98a8c07e9efe70458a95f86c55db3199a3830da35646462f7238c7466379e61b0c3d05ae895fb37843d0
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

31 lines
922 B
Plaintext

import type { ContextOptions, Duration, Interval } from "./types.js";
/**
* The {@link intervalToDuration} function options.
*/
export interface IntervalToDurationOptions extends ContextOptions<Date> {}
/**
* @name intervalToDuration
* @category Common Helpers
* @summary Convert interval to duration
*
* @description
* Convert an interval object to a duration object.
*
* @param interval - The interval to convert to duration
* @param options - The context options
*
* @returns The duration object
*
* @example
* // Get the duration between January 15, 1929 and April 4, 1968.
* intervalToDuration({
* start: new Date(1929, 0, 15, 12, 0, 0),
* end: new Date(1968, 3, 4, 19, 5, 0)
* });
* //=> { years: 39, months: 2, days: 20, hours: 7, minutes: 5, seconds: 0 }
*/
export declare function intervalToDuration(
interval: Interval,
options?: IntervalToDurationOptions | undefined,
): Duration;