date.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. 'use strict'
  2. var getWhatYear = require('./getWhatYear')
  3. var getWhatMonth = require('./getWhatMonth')
  4. var getWhatDay = require('./getWhatDay')
  5. var toStringDate = require('./toStringDate')
  6. var toDateString = require('./toDateString')
  7. var now = require('./now')
  8. var timestamp = require('./timestamp')
  9. var isValidDate = require('./isValidDate')
  10. var isDateSame = require('./isDateSame')
  11. var getWhatWeek = require('./getWhatWeek')
  12. var getYearDay = require('./getYearDay')
  13. var getYearWeek = require('./getYearWeek')
  14. var getMonthWeek = require('./getMonthWeek')
  15. var getDayOfYear = require('./getDayOfYear')
  16. var getDayOfMonth = require('./getDayOfMonth')
  17. var getDateDiff = require('./getDateDiff')
  18. var dateExports = {
  19. now: now,
  20. timestamp: timestamp,
  21. isValidDate: isValidDate,
  22. isDateSame: isDateSame,
  23. toStringDate: toStringDate,
  24. toDateString: toDateString,
  25. getWhatYear: getWhatYear,
  26. getWhatMonth: getWhatMonth,
  27. getWhatWeek: getWhatWeek,
  28. getWhatDay: getWhatDay,
  29. getYearDay: getYearDay,
  30. getYearWeek: getYearWeek,
  31. getMonthWeek: getMonthWeek,
  32. getDayOfYear: getDayOfYear,
  33. getDayOfMonth: getDayOfMonth,
  34. getDateDiff: getDateDiff
  35. }
  36. module.exports = dateExports