date-fns
Version:
Modern JavaScript date utility library
37 lines (34 loc) • 954 B
JavaScript
import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; // https://www.unicode.org/cldr/charts/32/summary/sk.html?hide#1986
var dateFormats = {
full: 'EEEE d. MMMM y',
long: 'd. MMMM y',
medium: 'd. M. y',
short: 'd. M. y' // https://www.unicode.org/cldr/charts/32/summary/sk.html?hide#2149
};
var timeFormats = {
full: 'H:mm:ss zzzz',
long: 'H:mm:ss z',
medium: 'H:mm:ss',
short: 'H:mm' // https://www.unicode.org/cldr/charts/32/summary/sk.html?hide#1994
};
var dateTimeFormats = {
full: '{{date}}, {{time}}',
long: '{{date}}, {{time}}',
medium: '{{date}}, {{time}}',
short: '{{date}} {{time}}'
};
var formatLong = {
date: buildFormatLongFn({
formats: dateFormats,
defaultWidth: 'full'
}),
time: buildFormatLongFn({
formats: timeFormats,
defaultWidth: 'full'
}),
dateTime: buildFormatLongFn({
formats: dateTimeFormats,
defaultWidth: 'full'
})
};
export default formatLong;