Files
Testing/html5-chat/nodeMulti/node_modules/date-fns/start_of_today/index.js
sean 343b4a3f3f
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-19 18:32:17 -05:00

22 lines
420 B
JavaScript

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