This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
admin-panel/graphql-types/node_modules/date-fns/end_of_today/index.js

22 lines
406 B
JavaScript

var endOfDay = require('../end_of_day/index.js')
/**
* @category Day Helpers
* @summary Return the end of today.
*
* @description
* Return the end of today.
*
* @returns {Date} the end of today
*
* @example
* // If today is 6 October 2014:
* var result = endOfToday()
* //=> Mon Oct 6 2014 23:59:59.999
*/
function endOfToday () {
return endOfDay(new Date())
}
module.exports = endOfToday