index.js 953 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. "use strict";
  2. var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
  3. Object.defineProperty(exports, "__esModule", {
  4. value: true
  5. });
  6. exports.default = void 0;
  7. var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js"));
  8. var dateFormats = {
  9. full: 'EEEE, dd MMMM yyyy',
  10. long: 'dd MMMM yyyy',
  11. medium: 'dd MMM yyyy',
  12. short: 'dd/MM/yyyy'
  13. };
  14. var timeFormats = {
  15. full: 'HH:mm:ss zzzz',
  16. long: 'HH:mm:ss z',
  17. medium: 'HH:mm:ss',
  18. short: 'H:mm'
  19. };
  20. var dateTimeFormats = {
  21. any: '{{date}} {{time}}'
  22. };
  23. var formatLong = {
  24. date: (0, _index.default)({
  25. formats: dateFormats,
  26. defaultWidth: 'full'
  27. }),
  28. time: (0, _index.default)({
  29. formats: timeFormats,
  30. defaultWidth: 'full'
  31. }),
  32. dateTime: (0, _index.default)({
  33. formats: dateTimeFormats,
  34. defaultWidth: 'any'
  35. })
  36. };
  37. var _default = formatLong;
  38. exports.default = _default;
  39. module.exports = exports.default;