formatLong.js 838 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. "use strict";
  2. exports.formatLong = void 0;
  3. var _index = require("../../_lib/buildFormatLongFn.js");
  4. const dateFormats = {
  5. full: "EEEE d MMMM y",
  6. long: "d MMMM y",
  7. medium: "d MMM y",
  8. short: "dd.MM.y",
  9. };
  10. const timeFormats = {
  11. full: "HH:mm:ss zzzz",
  12. long: "HH:mm:ss z",
  13. medium: "HH:mm:ss",
  14. short: "HH:mm",
  15. };
  16. const dateTimeFormats = {
  17. full: "{{date}} 'om' {{time}}",
  18. long: "{{date}} 'om' {{time}}",
  19. medium: "{{date}}, {{time}}",
  20. short: "{{date}}, {{time}}",
  21. };
  22. const formatLong = (exports.formatLong = {
  23. date: (0, _index.buildFormatLongFn)({
  24. formats: dateFormats,
  25. defaultWidth: "full",
  26. }),
  27. time: (0, _index.buildFormatLongFn)({
  28. formats: timeFormats,
  29. defaultWidth: "full",
  30. }),
  31. dateTime: (0, _index.buildFormatLongFn)({
  32. formats: dateTimeFormats,
  33. defaultWidth: "full",
  34. }),
  35. });