mirror of
http://36.133.248.69:3088/admin/RentWeAppFront.git
synced 2026-03-16 05:42:27 +08:00
init
This commit is contained in:
26
node_modules/date-fns/endOfToday.mjs
generated
vendored
Normal file
26
node_modules/date-fns/endOfToday.mjs
generated
vendored
Normal 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;
|
||||
Reference in New Issue
Block a user