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
420 B

var startOfDay = require('../start_of_day/index.js')
/**
* @category Day Helpers
* @summary Return the start of today.
*
* @description
* Return the start of today.
*
* @returns {Date} the start of today
*
* @example
* // If today is 6 October 2014:
* var result = startOfToday()
* //=> Mon Oct 6 2014 00:00:00
*/
function startOfToday () {
return startOfDay(new Date())
}
module.exports = startOfToday