mirror of https://github.com/lukechilds/docs.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
406 B
22 lines
406 B
6 years ago
|
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
|