reports/frontend/node_modules/es-toolkit/dist/compat/util/now.js
jtricerolph 1c411e402e Add settings page for managing forecasting API key and URL via UI
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-20 14:37:36 +00:00

21 lines
522 B
JavaScript

//#region src/compat/util/now.ts
/**
* Returns the number of milliseconds elapsed since January 1, 1970 00:00:00 UTC.
*
* @returns The current time in milliseconds.
*
* @example
* const currentTime = now();
* console.log(currentTime); // Outputs the current time in milliseconds
*
* @example
* const startTime = now();
* // Some time-consuming operation
* const endTime = now();
* console.log(`Operation took ${endTime - startTime} milliseconds`);
*/
function now() {
return Date.now();
}
//#endregion
exports.now = now;