Rocky_Mountain_Vending/.pnpm-store/v10/files/ac/bb65aa97d526321ae1945d59bffefc9bc8319d065daddd8bd83669814a887cf823a2c63ef6ad629c86f71dd49a8c8370fea1a929d12bfa074dc30a7be93a54
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

25 lines
573 B
Text

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