index.js 406 B

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