date-fns
Version:
Modern JavaScript date utility library
43 lines (39 loc) • 961 B
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var dateFormats = {
full: "EEEE, do MMMM y 'г.'",
long: "do MMMM y 'г.'",
medium: "d MMM y 'г.'",
short: 'dd.MM.y'
};
var timeFormats = {
full: 'H:mm:ss zzzz',
long: 'H:mm:ss z',
medium: 'H:mm:ss',
short: 'H:mm'
};
var dateTimeFormats = {
any: '{{date}}, {{time}}'
};
var formatLong = {
date: (0, _index.default)({
formats: dateFormats,
defaultWidth: 'full'
}),
time: (0, _index.default)({
formats: timeFormats,
defaultWidth: 'full'
}),
dateTime: (0, _index.default)({
formats: dateTimeFormats,
defaultWidth: 'any'
})
};
var _default = formatLong;
exports.default = _default;
module.exports = exports.default;