22 lines
406 B
JavaScript
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
|