Files
klz-cables.com/.pnpm-store/v10/files/94/b3a82dab705cb217b9a089590d235c12b6d89f7e9a226c6c7bf91dbf7a4ed146215903ffd0cf200a0c09c6fcc37aad713c3fc317e8a99dadad8401ae47286c
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

26 lines
600 B
Plaintext

import { toDate } from "./toDate.js";
/**
* @name getMilliseconds
* @category Millisecond Helpers
* @summary Get the milliseconds of the given date.
*
* @description
* Get the milliseconds of the given date.
*
* @param date - The given date
*
* @returns The milliseconds
*
* @example
* // Get the milliseconds of 29 February 2012 11:45:05.123:
* const result = getMilliseconds(new Date(2012, 1, 29, 11, 45, 5, 123))
* //=> 123
*/
export function getMilliseconds(date) {
return toDate(date).getMilliseconds();
}
// Fallback for modularized imports:
export default getMilliseconds;