index.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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, d MMMM yyyy',
  10. long: 'd MMMM, yyyy',
  11. medium: 'd MMM, yyyy',
  12. short: 'dd/MM/yyyy'
  13. };
  14. var timeFormats = {
  15. full: 'h:mm:ss a zzzz',
  16. long: 'h:mm:ss a z',
  17. medium: 'h:mm:ss a',
  18. short: 'h:mm a'
  19. };
  20. var dateTimeFormats = {
  21. full: "{{date}} 'at' {{time}}",
  22. long: "{{date}} 'at' {{time}}",
  23. medium: '{{date}}, {{time}}',
  24. short: '{{date}}, {{time}}'
  25. };
  26. var formatLong = {
  27. date: (0, _index.default)({
  28. formats: dateFormats,
  29. defaultWidth: 'full'
  30. }),
  31. time: (0, _index.default)({
  32. formats: timeFormats,
  33. defaultWidth: 'full'
  34. }),
  35. dateTime: (0, _index.default)({
  36. formats: dateTimeFormats,
  37. defaultWidth: 'full'
  38. })
  39. };
  40. var _default = formatLong;
  41. exports.default = _default;
  42. module.exports = exports.default;