This commit is contained in:
2025-11-14 11:39:33 +08:00
parent 6e5d892992
commit 1ba633ba45
7143 changed files with 922330 additions and 0 deletions

26
node_modules/date-fns/endOfToday.mjs generated vendored Normal file
View File

@@ -0,0 +1,26 @@
import { endOfDay } from "./endOfDay.mjs";
/**
* @name endOfToday
* @category Day Helpers
* @summary Return the end of today.
* @pure false
*
* @description
* Return the end of today.
*
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
*
* @returns The end of today
*
* @example
* // If today is 6 October 2014:
* const result = endOfToday()
* //=> Mon Oct 6 2014 23:59:59.999
*/
export function endOfToday() {
return endOfDay(Date.now());
}
// Fallback for modularized imports:
export default endOfToday;