Gazebo_simulation-Frontend/node_modules/date-fns/start_of_today/index.js

22 lines
420 B
JavaScript
Raw Normal View History

2020-12-21 11:29:31 -04:00
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