index.js 420 B

123456789101112131415161718192021
  1. var startOfDay = require('../start_of_day/index.js')
  2. /**
  3. * @category Day Helpers
  4. * @summary Return the start of today.
  5. *
  6. * @description
  7. * Return the start of today.
  8. *
  9. * @returns {Date} the start of today
  10. *
  11. * @example
  12. * // If today is 6 October 2014:
  13. * var result = startOfToday()
  14. * //=> Mon Oct 6 2014 00:00:00
  15. */
  16. function startOfToday () {
  17. return startOfDay(new Date())
  18. }
  19. module.exports = startOfToday