project files added

This commit is contained in:
mhalfmann
2021-06-15 16:00:08 +02:00
parent e156e2f053
commit db46afa351
13928 changed files with 1569902 additions and 0 deletions
@@ -0,0 +1,163 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = formatDistance;
var formatDistanceLocale = {
lessThanXSeconds: {
one: {
standalone: 'manje od 1 sekunde',
withPrepositionAgo: 'manje od 1 sekunde',
withPrepositionIn: 'manje od 1 sekundu'
},
dual: 'manje od {{count}} sekunde',
other: 'manje od {{count}} sekundi'
},
xSeconds: {
one: {
standalone: '1 sekunda',
withPrepositionAgo: '1 sekunde',
withPrepositionIn: '1 sekundu'
},
dual: '{{count}} sekunde',
other: '{{count}} sekundi'
},
halfAMinute: 'pola minute',
lessThanXMinutes: {
one: {
standalone: 'manje od 1 minute',
withPrepositionAgo: 'manje od 1 minute',
withPrepositionIn: 'manje od 1 minutu'
},
dual: 'manje od {{count}} minute',
other: 'manje od {{count}} minuta'
},
xMinutes: {
one: {
standalone: '1 minuta',
withPrepositionAgo: '1 minute',
withPrepositionIn: '1 minutu'
},
dual: '{{count}} minute',
other: '{{count}} minuta'
},
aboutXHours: {
one: {
standalone: 'oko 1 sat',
withPrepositionAgo: 'oko 1 sat',
withPrepositionIn: 'oko 1 sat'
},
dual: 'oko {{count}} sata',
other: 'oko {{count}} sati'
},
xHours: {
one: {
standalone: '1 sat',
withPrepositionAgo: '1 sat',
withPrepositionIn: '1 sat'
},
dual: '{{count}} sata',
other: '{{count}} sati'
},
xDays: {
one: {
standalone: '1 dan',
withPrepositionAgo: '1 dan',
withPrepositionIn: '1 dan'
},
dual: '{{count}} dana',
other: '{{count}} dana'
},
aboutXMonths: {
one: {
standalone: 'oko 1 mesec',
withPrepositionAgo: 'oko 1 mesec',
withPrepositionIn: 'oko 1 mesec'
},
dual: 'oko {{count}} meseca',
other: 'oko {{count}} meseci'
},
xMonths: {
one: {
standalone: '1 mesec',
withPrepositionAgo: '1 mesec',
withPrepositionIn: '1 mesec'
},
dual: '{{count}} meseca',
other: '{{count}} meseci'
},
aboutXYears: {
one: {
standalone: 'oko 1 godinu',
withPrepositionAgo: 'oko 1 godinu',
withPrepositionIn: 'oko 1 godinu'
},
dual: 'oko {{count}} godine',
other: 'oko {{count}} godina'
},
xYears: {
one: {
standalone: '1 godina',
withPrepositionAgo: '1 godine',
withPrepositionIn: '1 godinu'
},
dual: '{{count}} godine',
other: '{{count}} godina'
},
overXYears: {
one: {
standalone: 'preko 1 godinu',
withPrepositionAgo: 'preko 1 godinu',
withPrepositionIn: 'preko 1 godinu'
},
dual: 'preko {{count}} godine',
other: 'preko {{count}} godina'
},
almostXYears: {
one: {
standalone: 'gotovo 1 godinu',
withPrepositionAgo: 'gotovo 1 godinu',
withPrepositionIn: 'gotovo 1 godinu'
},
dual: 'gotovo {{count}} godine',
other: 'gotovo {{count}} godina'
}
};
function formatDistance(token, count, options) {
options = options || {};
var result;
if (typeof formatDistanceLocale[token] === 'string') {
result = formatDistanceLocale[token];
} else if (count === 1) {
if (options.addSuffix) {
if (options.comparison > 0) {
result = formatDistanceLocale[token].one.withPrepositionIn;
} else {
result = formatDistanceLocale[token].one.withPrepositionAgo;
}
} else {
result = formatDistanceLocale[token].one.standalone;
}
} else if (count % 10 > 1 && count % 10 < 5 && // if last digit is between 2 and 4
String(count).substr(-2, 1) !== '1' // unless the 2nd to last digit is "1"
) {
result = formatDistanceLocale[token].dual.replace('{{count}}', count);
} else {
result = formatDistanceLocale[token].other.replace('{{count}}', count);
}
if (options.addSuffix) {
if (options.comparison > 0) {
return 'za ' + result;
} else {
return 'pre ' + result;
}
}
return result;
}
module.exports = exports.default;
@@ -0,0 +1,46 @@
"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, d. MMMM yyyy.',
long: 'd. MMMM yyyy.',
medium: 'd. MMM yy.',
short: 'dd. MM. yy.'
};
var timeFormats = {
full: 'HH:mm:ss (zzzz)',
long: 'HH:mm:ss z',
medium: 'HH:mm:ss',
short: 'HH:mm'
};
var dateTimeFormats = {
full: "{{date}} 'u' {{time}}",
long: "{{date}} 'u' {{time}}",
medium: '{{date}} {{time}}',
short: '{{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: 'full'
})
};
var _default = formatLong;
exports.default = _default;
module.exports = exports.default;
@@ -0,0 +1,58 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = formatRelative;
var formatRelativeLocale = {
lastWeek: function (date) {
var day = date.getUTCDay();
switch (day) {
case 0:
return "'prošle nedelje u' p";
case 3:
return "'prošle srede u' p";
case 6:
return "'prošle subote u' p";
default:
return "'prošli' EEEE 'u' p";
}
},
yesterday: "'juče u' p",
today: "'danas u' p",
tomorrow: "'sutra u' p",
nextWeek: function (date) {
var day = date.getUTCDay();
switch (day) {
case 0:
return "'sledeće nedelje u' p";
case 3:
return "'sledeću sredu u' p";
case 6:
return "'sledeću subotu u' p";
default:
return "'sledeći' EEEE 'u' p";
}
},
other: 'P'
};
function formatRelative(token, date, _baseDate, _options) {
var format = formatRelativeLocale[token];
if (typeof format === 'function') {
return format(date);
}
return format;
}
module.exports = exports.default;
@@ -0,0 +1,139 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function ordinalNumber(dirtyNumber) {
var number = Number(dirtyNumber);
return String(number).concat('.');
}
var eraValues = {
narrow: ['pr.n.e.', 'AD'],
abbreviated: ['pr. Hr.', 'po. Hr.'],
wide: ['Pre Hrista', 'Posle Hrista']
};
var monthValues = {
narrow: ['1.', '2.', '3.', '4.', '5.', '6.', '7.', '8.', '9.', '10.', '11.', '12.'],
abbreviated: ['jan', 'feb', 'mar', 'apr', 'maj', 'jun', 'jul', 'avg', 'sep', 'okt', 'nov', 'dec'],
wide: ['januar', 'februar', 'mart', 'april', 'maj', 'jun', 'jul', 'avgust', 'septembar', 'oktobar', 'novembar', 'decembar']
};
var formattingMonthValues = {
narrow: ['1.', '2.', '3.', '4.', '5.', '6.', '7.', '8.', '9.', '10.', '11.', '12.'],
abbreviated: ['jan', 'feb', 'mar', 'apr', 'maj', 'jun', 'jul', 'avg', 'sep', 'okt', 'nov', 'dec'],
wide: ['januar', 'februar', 'mart', 'april', 'maj', 'jun', 'jul', 'avgust', 'septembar', 'oktobar', 'novembar', 'decembar']
};
var quarterValues = {
narrow: ['1.', '2.', '3.', '4.'],
abbreviated: ['1. kv.', '2. kv.', '3. kv.', '4. kv.'],
wide: ['1. kvartal', '2. kvartal', '3. kvartal', '4. kvartal']
};
var dayValues = {
narrow: ['N', 'P', 'U', 'S', 'Č', 'P', 'S'],
short: ['ned', 'pon', 'uto', 'sre', 'čet', 'pet', 'sub'],
abbreviated: ['ned', 'pon', 'uto', 'sre', 'čet', 'pet', 'sub'],
wide: ['nedjelja', 'ponedjeljak', 'utorak', 'sreda', 'četvrtak', 'petak', 'subota']
};
var formattingDayPeriodValues = {
narrow: {
am: 'AM',
pm: 'PM',
midnight: 'ponoć',
noon: 'podne',
morning: 'ujutru',
afternoon: 'popodne',
evening: 'uveče',
night: 'noću'
},
abbreviated: {
am: 'AM',
pm: 'PM',
midnight: 'ponoć',
noon: 'podne',
morning: 'ujutru',
afternoon: 'popodne',
evening: 'uveče',
night: 'noću'
},
wide: {
am: 'AM',
pm: 'PM',
midnight: 'ponoć',
noon: 'podne',
morning: 'ujutru',
afternoon: 'posle podne',
evening: 'uveče',
night: 'noću'
}
};
var dayPeriodValues = {
narrow: {
am: 'AM',
pm: 'PM',
midnight: 'ponoć',
noon: 'podne',
morning: 'ujutru',
afternoon: 'popodne',
evening: 'uveče',
night: 'noću'
},
abbreviated: {
am: 'AM',
pm: 'PM',
midnight: 'ponoć',
noon: 'podne',
morning: 'ujutru',
afternoon: 'popodne',
evening: 'uveče',
night: 'noću'
},
wide: {
am: 'AM',
pm: 'PM',
midnight: 'ponoć',
noon: 'podne',
morning: 'ujutru',
afternoon: 'posle podne',
evening: 'uveče',
night: 'noću'
}
};
var localize = {
ordinalNumber: ordinalNumber,
era: (0, _index.default)({
values: eraValues,
defaultWidth: 'wide'
}),
quarter: (0, _index.default)({
values: quarterValues,
defaultWidth: 'wide',
argumentCallback: function (quarter) {
return Number(quarter) - 1;
}
}),
month: (0, _index.default)({
values: monthValues,
defaultWidth: 'wide',
formattingValues: formattingMonthValues,
defaultFormattingWidth: 'wide'
}),
day: (0, _index.default)({
values: dayValues,
defaultWidth: 'wide'
}),
dayPeriod: (0, _index.default)({
values: dayPeriodValues,
defaultWidth: 'wide',
formattingValues: formattingDayPeriodValues,
defaultFormattingWidth: 'wide'
})
};
var _default = localize;
exports.default = _default;
module.exports = exports.default;
+110
View File
@@ -0,0 +1,110 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js"));
var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var matchOrdinalNumberPattern = /^(\d+)\./i;
var parseOrdinalNumberPattern = /\d+/i;
var matchEraPatterns = {
narrow: /^(pr\.n\.e\.|AD)/i,
abbreviated: /^(pr\.\s?Hr\.|po\.\s?Hr\.)/i,
wide: /^(Pre Hrista|pre nove ere|Posle Hrista|nova era)/i
};
var parseEraPatterns = {
any: [/^pr/i, /^(po|nova)/i]
};
var matchQuarterPatterns = {
narrow: /^[1234]/i,
abbreviated: /^[1234]\.\s?kv\.?/i,
wide: /^[1234]\. kvartal/i
};
var parseQuarterPatterns = {
any: [/1/i, /2/i, /3/i, /4/i]
};
var matchMonthPatterns = {
narrow: /^(10|11|12|[123456789])\./i,
abbreviated: /^(jan|feb|mar|apr|maj|jun|jul|avg|sep|okt|nov|dec)/i,
wide: /^((januar|januara)|(februar|februara)|(mart|marta)|(april|aprila)|(maj|maja)|(jun|juna)|(jul|jula)|(avgust|avgusta)|(septembar|septembra)|(oktobar|oktobra)|(novembar|novembra)|(decembar|decembra))/i
};
var parseMonthPatterns = {
narrow: [/(10|11|12|[123456789])/i],
any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^maj/i, /^jun/i, /^jul/i, /^avg/i, /^s/i, /^o/i, /^n/i, /^d/i]
};
var matchDayPatterns = {
narrow: /^[npusčc]/i,
short: /^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i,
abbreviated: /^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i,
wide: /^(nedjelja|ponedjeljak|utorak|sreda|(četvrtak|cetvrtak)|petak|subota)/i
};
var parseDayPatterns = {
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
};
var matchDayPeriodPatterns = {
any: /^(am|pm|ponoc|ponoć|(po)?podne|uvece|uveče|noću|posle podne|ujutru)/i
};
var parseDayPeriodPatterns = {
any: {
am: /^a/i,
pm: /^p/i,
midnight: /^pono/i,
noon: /^pod/i,
morning: /jutro/i,
afternoon: /(posle\s|po)+podne/i,
evening: /(uvece|uveče)/i,
night: /(nocu|noću)/i
}
};
var match = {
ordinalNumber: (0, _index2.default)({
matchPattern: matchOrdinalNumberPattern,
parsePattern: parseOrdinalNumberPattern,
valueCallback: function (value) {
return parseInt(value, 10);
}
}),
era: (0, _index.default)({
matchPatterns: matchEraPatterns,
defaultMatchWidth: 'wide',
parsePatterns: parseEraPatterns,
defaultParseWidth: 'any'
}),
quarter: (0, _index.default)({
matchPatterns: matchQuarterPatterns,
defaultMatchWidth: 'wide',
parsePatterns: parseQuarterPatterns,
defaultParseWidth: 'any',
valueCallback: function (index) {
return index + 1;
}
}),
month: (0, _index.default)({
matchPatterns: matchMonthPatterns,
defaultMatchWidth: 'wide',
parsePatterns: parseMonthPatterns,
defaultParseWidth: 'any'
}),
day: (0, _index.default)({
matchPatterns: matchDayPatterns,
defaultMatchWidth: 'wide',
parsePatterns: parseDayPatterns,
defaultParseWidth: 'any'
}),
dayPeriod: (0, _index.default)({
matchPatterns: matchDayPeriodPatterns,
defaultMatchWidth: 'any',
parsePatterns: parseDayPeriodPatterns,
defaultParseWidth: 'any'
})
};
var _default = match;
exports.default = _default;
module.exports = exports.default;
+4
View File
@@ -0,0 +1,4 @@
// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
import { srLatn } from 'date-fns/locale'
export default srLatn
+44
View File
@@ -0,0 +1,44 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js"));
var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js"));
var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js"));
var _index4 = _interopRequireDefault(require("./_lib/localize/index.js"));
var _index5 = _interopRequireDefault(require("./_lib/match/index.js"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/**
* @type {Locale}
* @category Locales
* @summary Serbian latin locale.
* @language Serbian
* @iso-639-2 srp
* @author Igor Radivojević [@rogyvoje]{@link https://github.com/rogyvoje}
*/
var locale = {
code: 'sr-Latn',
formatDistance: _index.default,
formatLong: _index2.default,
formatRelative: _index3.default,
localize: _index4.default,
match: _index5.default,
options: {
weekStartsOn: 1
/* Monday */
,
firstWeekContainsDate: 1
}
};
var _default = locale;
exports.default = _default;
module.exports = exports.default;
+33
View File
@@ -0,0 +1,33 @@
// @flow
// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
export type Locale = {
formatDistance: (...args: Array<any>) => any,
formatRelative: (...args: Array<any>) => any,
localize: {
ordinalNumber: (...args: Array<any>) => any,
era: (...args: Array<any>) => any,
quarter: (...args: Array<any>) => any,
month: (...args: Array<any>) => any,
day: (...args: Array<any>) => any,
dayPeriod: (...args: Array<any>) => any
},
formatLong: Object,
date: (...args: Array<any>) => any,
time: (...args: Array<any>) => any,
dateTime: (...args: Array<any>) => any,
match: {
ordinalNumber: (...args: Array<any>) => any,
era: (...args: Array<any>) => any,
quarter: (...args: Array<any>) => any,
month: (...args: Array<any>) => any,
day: (...args: Array<any>) => any,
dayPeriod: (...args: Array<any>) => any
},
options?: {
weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6,
firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7
}
}
declare module.exports: Locale
+5
View File
@@ -0,0 +1,5 @@
{
"sideEffects": false,
"module": "../../esm/locale/sr-Latn/index.js",
"typings": "../../typings.d.ts"
}
+304
View File
@@ -0,0 +1,304 @@
# Serbian (sr-Latn) locale
## `format` and `parse`
| Title | Token string | Date | `format` result | `parse` result |
| ------------------------------- | ------------ | ------------------------ | ----------------------------------------------- | ------------------------ |
| Calendar year | yo | 1987-02-11T12:13:14.015Z | 1987. | 1987-01-01T00:00:00.000Z |
| | | 0005-01-01T12:13:14.015Z | 5. | 0005-01-01T00:00:00.000Z |
| Local week-numbering year | Yo | 1987-02-11T12:13:14.015Z | 1987. | 1986-12-29T00:00:00.000Z |
| | | 0005-01-01T12:13:14.015Z | 5. | 0004-12-27T00:00:00.000Z |
| Quarter (formatting) | Qo | 2019-01-01T12:13:14.015Z | 1. | 2019-01-01T00:00:00.000Z |
| | | 2019-04-01T12:13:14.015Z | 2. | 2019-04-01T00:00:00.000Z |
| | QQQ | 2019-01-01T12:13:14.015Z | 1. kv. | 2019-01-01T00:00:00.000Z |
| | | 2019-04-01T12:13:14.015Z | 2. kv. | 2019-04-01T00:00:00.000Z |
| | QQQQ | 2019-01-01T12:13:14.015Z | 1. kvartal | 2019-01-01T00:00:00.000Z |
| | | 2019-04-01T12:13:14.015Z | 2. kvartal | 2019-04-01T00:00:00.000Z |
| | QQQQQ | 2019-01-01T12:13:14.015Z | 1. | Invalid Date |
| | | 2019-04-01T12:13:14.015Z | 2. | Invalid Date |
| Quarter (stand-alone) | qo | 2019-01-01T12:13:14.015Z | 1. | 2019-01-01T00:00:00.000Z |
| | | 2019-04-01T12:13:14.015Z | 2. | 2019-04-01T00:00:00.000Z |
| | qqq | 2019-01-01T12:13:14.015Z | 1. kv. | 2019-01-01T00:00:00.000Z |
| | | 2019-04-01T12:13:14.015Z | 2. kv. | 2019-04-01T00:00:00.000Z |
| | qqqq | 2019-01-01T12:13:14.015Z | 1. kvartal | 2019-01-01T00:00:00.000Z |
| | | 2019-04-01T12:13:14.015Z | 2. kvartal | 2019-04-01T00:00:00.000Z |
| Month (formatting) | Mo | 2019-02-11T12:13:14.015Z | 2. | 2019-02-01T00:00:00.000Z |
| | | 2019-07-10T12:13:14.015Z | 7. | 2019-07-01T00:00:00.000Z |
| | MMM | 2019-02-11T12:13:14.015Z | feb | 2019-02-01T00:00:00.000Z |
| | | 2019-07-10T12:13:14.015Z | jul | 2019-07-01T00:00:00.000Z |
| | MMMM | 2019-02-11T12:13:14.015Z | februar | 2019-02-01T00:00:00.000Z |
| | | 2019-07-10T12:13:14.015Z | jul | 2019-07-01T00:00:00.000Z |
| | MMMMM | 2019-02-11T12:13:14.015Z | 2. | 2019-01-01T00:00:00.000Z |
| | | 2019-07-10T12:13:14.015Z | 7. | 2019-01-01T00:00:00.000Z |
| Month (stand-alone) | Lo | 2019-02-11T12:13:14.015Z | 2. | 2019-02-01T00:00:00.000Z |
| | | 2019-07-10T12:13:14.015Z | 7. | 2019-07-01T00:00:00.000Z |
| | LLL | 2019-02-11T12:13:14.015Z | feb | 2019-02-01T00:00:00.000Z |
| | | 2019-07-10T12:13:14.015Z | jul | 2019-07-01T00:00:00.000Z |
| | LLLL | 2019-02-11T12:13:14.015Z | februar | 2019-02-01T00:00:00.000Z |
| | | 2019-07-10T12:13:14.015Z | jul | 2019-07-01T00:00:00.000Z |
| | LLLLL | 2019-02-11T12:13:14.015Z | 2. | 2019-01-01T00:00:00.000Z |
| | | 2019-07-10T12:13:14.015Z | 7. | 2019-01-01T00:00:00.000Z |
| Local week of year | wo | 2019-01-01T12:13:14.015Z | 1. | 2018-12-31T00:00:00.000Z |
| | | 2019-12-01T12:13:14.015Z | 48. | 2019-11-25T00:00:00.000Z |
| ISO week of year | Io | 2019-01-01T12:13:14.015Z | 1. | 2018-12-31T00:00:00.000Z |
| | | 2019-12-01T12:13:14.015Z | 48. | 2019-11-25T00:00:00.000Z |
| Day of month | do | 2019-02-11T12:13:14.015Z | 11. | 2019-02-11T00:00:00.000Z |
| | | 2019-02-28T12:13:14.015Z | 28. | 2019-02-28T00:00:00.000Z |
| Day of year | Do | 2019-02-11T12:13:14.015Z | 42. | 2019-02-11T00:00:00.000Z |
| | | 2019-12-31T12:13:14.015Z | 365. | 2019-12-31T00:00:00.000Z |
| Day of week (formatting) | E | 2019-02-11T12:13:14.015Z | pon | Invalid Date |
| | | 2019-02-15T12:13:14.015Z | pet | Invalid Date |
| | EE | 2019-02-11T12:13:14.015Z | pon | Invalid Date |
| | | 2019-02-15T12:13:14.015Z | pet | Invalid Date |
| | EEE | 2019-02-11T12:13:14.015Z | pon | Invalid Date |
| | | 2019-02-15T12:13:14.015Z | pet | Invalid Date |
| | EEEE | 2019-02-11T12:13:14.015Z | ponedjeljak | Invalid Date |
| | | 2019-02-15T12:13:14.015Z | petak | Invalid Date |
| | EEEEE | 2019-02-11T12:13:14.015Z | P | Invalid Date |
| | | 2019-02-15T12:13:14.015Z | P | Invalid Date |
| | EEEEEE | 2019-02-11T12:13:14.015Z | pon | Invalid Date |
| | | 2019-02-15T12:13:14.015Z | pet | Invalid Date |
| ISO day of week (formatting) | io | 2019-02-11T12:13:14.015Z | 1. | 2019-02-11T00:00:00.000Z |
| | | 2019-02-15T12:13:14.015Z | 5. | 2019-02-15T00:00:00.000Z |
| | iii | 2019-02-11T12:13:14.015Z | pon | Invalid Date |
| | | 2019-02-15T12:13:14.015Z | pet | Invalid Date |
| | iiii | 2019-02-11T12:13:14.015Z | ponedjeljak | Invalid Date |
| | | 2019-02-15T12:13:14.015Z | petak | Invalid Date |
| | iiiii | 2019-02-11T12:13:14.015Z | P | Invalid Date |
| | | 2019-02-15T12:13:14.015Z | P | Invalid Date |
| | iiiiii | 2019-02-11T12:13:14.015Z | pon | Invalid Date |
| | | 2019-02-15T12:13:14.015Z | pet | Invalid Date |
| Local day of week (formatting) | eo | 2019-02-11T12:13:14.015Z | 1. | 2019-02-11T00:00:00.000Z |
| | | 2019-02-15T12:13:14.015Z | 5. | 2019-02-15T00:00:00.000Z |
| | eee | 2019-02-11T12:13:14.015Z | pon | Invalid Date |
| | | 2019-02-15T12:13:14.015Z | pet | Invalid Date |
| | eeee | 2019-02-11T12:13:14.015Z | ponedjeljak | Invalid Date |
| | | 2019-02-15T12:13:14.015Z | petak | Invalid Date |
| | eeeee | 2019-02-11T12:13:14.015Z | P | Invalid Date |
| | | 2019-02-15T12:13:14.015Z | P | Invalid Date |
| | eeeeee | 2019-02-11T12:13:14.015Z | pon | Invalid Date |
| | | 2019-02-15T12:13:14.015Z | pet | Invalid Date |
| Local day of week (stand-alone) | co | 2019-02-11T12:13:14.015Z | 1. | 2019-02-11T00:00:00.000Z |
| | | 2019-02-15T12:13:14.015Z | 5. | 2019-02-15T00:00:00.000Z |
| | ccc | 2019-02-11T12:13:14.015Z | pon | Invalid Date |
| | | 2019-02-15T12:13:14.015Z | pet | Invalid Date |
| | cccc | 2019-02-11T12:13:14.015Z | ponedjeljak | Invalid Date |
| | | 2019-02-15T12:13:14.015Z | petak | Invalid Date |
| | ccccc | 2019-02-11T12:13:14.015Z | P | Invalid Date |
| | | 2019-02-15T12:13:14.015Z | P | Invalid Date |
| | cccccc | 2019-02-11T12:13:14.015Z | pon | Invalid Date |
| | | 2019-02-15T12:13:14.015Z | pet | Invalid Date |
| AM, PM | a | 2019-02-11T11:13:14.015Z | AM | 2019-02-11T00:00:00.000Z |
| | | 2019-02-11T14:13:14.015Z | PM | 2019-02-11T12:00:00.000Z |
| | | 2019-02-11T19:13:14.015Z | PM | 2019-02-11T12:00:00.000Z |
| | | 2019-02-11T02:13:14.015Z | AM | 2019-02-11T00:00:00.000Z |
| | aa | 2019-02-11T11:13:14.015Z | AM | 2019-02-11T00:00:00.000Z |
| | | 2019-02-11T14:13:14.015Z | PM | 2019-02-11T12:00:00.000Z |
| | | 2019-02-11T19:13:14.015Z | PM | 2019-02-11T12:00:00.000Z |
| | | 2019-02-11T02:13:14.015Z | AM | 2019-02-11T00:00:00.000Z |
| | aaa | 2019-02-11T11:13:14.015Z | AM | 2019-02-11T00:00:00.000Z |
| | | 2019-02-11T14:13:14.015Z | PM | 2019-02-11T12:00:00.000Z |
| | | 2019-02-11T19:13:14.015Z | PM | 2019-02-11T12:00:00.000Z |
| | | 2019-02-11T02:13:14.015Z | AM | 2019-02-11T00:00:00.000Z |
| | aaaa | 2019-02-11T11:13:14.015Z | AM | 2019-02-11T00:00:00.000Z |
| | | 2019-02-11T14:13:14.015Z | PM | 2019-02-11T12:00:00.000Z |
| | | 2019-02-11T19:13:14.015Z | PM | 2019-02-11T12:00:00.000Z |
| | | 2019-02-11T02:13:14.015Z | AM | 2019-02-11T00:00:00.000Z |
| | aaaaa | 2019-02-11T11:13:14.015Z | AM | 2019-02-11T00:00:00.000Z |
| | | 2019-02-11T14:13:14.015Z | PM | 2019-02-11T12:00:00.000Z |
| | | 2019-02-11T19:13:14.015Z | PM | 2019-02-11T12:00:00.000Z |
| | | 2019-02-11T02:13:14.015Z | AM | 2019-02-11T00:00:00.000Z |
| AM, PM, noon, midnight | b | 2019-02-11T11:13:14.015Z | AM | 2019-02-11T00:00:00.000Z |
| | | 2019-02-11T14:13:14.015Z | PM | 2019-02-11T12:00:00.000Z |
| | | 2019-02-11T19:13:14.015Z | PM | 2019-02-11T12:00:00.000Z |
| | | 2019-02-11T02:13:14.015Z | AM | 2019-02-11T00:00:00.000Z |
| | bb | 2019-02-11T11:13:14.015Z | AM | 2019-02-11T00:00:00.000Z |
| | | 2019-02-11T14:13:14.015Z | PM | 2019-02-11T12:00:00.000Z |
| | | 2019-02-11T19:13:14.015Z | PM | 2019-02-11T12:00:00.000Z |
| | | 2019-02-11T02:13:14.015Z | AM | 2019-02-11T00:00:00.000Z |
| | bbb | 2019-02-11T11:13:14.015Z | AM | 2019-02-11T00:00:00.000Z |
| | | 2019-02-11T14:13:14.015Z | PM | 2019-02-11T12:00:00.000Z |
| | | 2019-02-11T19:13:14.015Z | PM | 2019-02-11T12:00:00.000Z |
| | | 2019-02-11T02:13:14.015Z | AM | 2019-02-11T00:00:00.000Z |
| | bbbb | 2019-02-11T11:13:14.015Z | AM | 2019-02-11T00:00:00.000Z |
| | | 2019-02-11T14:13:14.015Z | PM | 2019-02-11T12:00:00.000Z |
| | | 2019-02-11T19:13:14.015Z | PM | 2019-02-11T12:00:00.000Z |
| | | 2019-02-11T02:13:14.015Z | AM | 2019-02-11T00:00:00.000Z |
| | bbbbb | 2019-02-11T11:13:14.015Z | AM | 2019-02-11T00:00:00.000Z |
| | | 2019-02-11T14:13:14.015Z | PM | 2019-02-11T12:00:00.000Z |
| | | 2019-02-11T19:13:14.015Z | PM | 2019-02-11T12:00:00.000Z |
| | | 2019-02-11T02:13:14.015Z | AM | 2019-02-11T00:00:00.000Z |
| Flexible day period | B | 2019-02-11T11:13:14.015Z | ujutru | 2019-02-11T00:00:00.000Z |
| | | 2019-02-11T14:13:14.015Z | popodne | 2019-02-11T12:00:00.000Z |
| | | 2019-02-11T19:13:14.015Z | uveče | 2019-02-11T17:00:00.000Z |
| | | 2019-02-11T02:13:14.015Z | noću | 2019-02-11T00:00:00.000Z |
| | BB | 2019-02-11T11:13:14.015Z | ujutru | 2019-02-11T00:00:00.000Z |
| | | 2019-02-11T14:13:14.015Z | popodne | 2019-02-11T12:00:00.000Z |
| | | 2019-02-11T19:13:14.015Z | uveče | 2019-02-11T17:00:00.000Z |
| | | 2019-02-11T02:13:14.015Z | noću | 2019-02-11T00:00:00.000Z |
| | BBB | 2019-02-11T11:13:14.015Z | ujutru | 2019-02-11T00:00:00.000Z |
| | | 2019-02-11T14:13:14.015Z | popodne | 2019-02-11T12:00:00.000Z |
| | | 2019-02-11T19:13:14.015Z | uveče | 2019-02-11T17:00:00.000Z |
| | | 2019-02-11T02:13:14.015Z | noću | 2019-02-11T00:00:00.000Z |
| | BBBB | 2019-02-11T11:13:14.015Z | ujutru | 2019-02-11T00:00:00.000Z |
| | | 2019-02-11T14:13:14.015Z | posle podne | 2019-02-11T12:00:00.000Z |
| | | 2019-02-11T19:13:14.015Z | uveče | 2019-02-11T17:00:00.000Z |
| | | 2019-02-11T02:13:14.015Z | noću | 2019-02-11T00:00:00.000Z |
| | BBBBB | 2019-02-11T11:13:14.015Z | ujutru | 2019-02-11T00:00:00.000Z |
| | | 2019-02-11T14:13:14.015Z | popodne | 2019-02-11T12:00:00.000Z |
| | | 2019-02-11T19:13:14.015Z | uveče | 2019-02-11T17:00:00.000Z |
| | | 2019-02-11T02:13:14.015Z | noću | 2019-02-11T00:00:00.000Z |
| Hour [1-12] | ho | 2019-02-11T11:13:14.015Z | 11. | 2019-02-11T11:00:00.000Z |
| | | 2019-02-11T23:13:14.015Z | 11. | 2019-02-11T23:00:00.000Z |
| Hour [0-23] | Ho | 2019-02-11T11:13:14.015Z | 11. | 2019-02-11T11:00:00.000Z |
| | | 2019-02-11T23:13:14.015Z | 23. | 2019-02-11T23:00:00.000Z |
| Hour [0-11] | Ko | 2019-02-11T11:13:14.015Z | 11. | 2019-02-11T11:00:00.000Z |
| | | 2019-02-11T23:13:14.015Z | 11. | 2019-02-11T23:00:00.000Z |
| Hour [1-24] | ko | 2019-02-11T11:13:14.015Z | 11. | 2019-02-11T11:00:00.000Z |
| | | 2019-02-11T23:13:14.015Z | 23. | 2019-02-11T23:00:00.000Z |
| Minute | mo | 2019-01-01T12:01:14.015Z | 1. | 2019-01-01T12:01:00.000Z |
| | | 2019-04-01T12:55:14.015Z | 55. | 2019-04-01T12:55:00.000Z |
| Second | so | 2019-01-01T12:13:01.015Z | 1. | 2019-01-01T12:13:01.000Z |
| | | 2019-04-01T12:13:55.015Z | 55. | 2019-04-01T12:13:55.000Z |
| Long localized date | P | 1987-02-11T12:13:14.015Z | 11. 02. 87. | 1987-02-11T00:00:00.000Z |
| | | 1453-05-29T23:59:59.999Z | 29. 05. 53. | 1453-05-29T00:00:00.000Z |
| | PP | 1987-02-11T12:13:14.015Z | 11. feb 87. | 1987-02-11T00:00:00.000Z |
| | | 1453-05-29T23:59:59.999Z | 29. maj 53. | 1453-05-29T00:00:00.000Z |
| | PPP | 1987-02-11T12:13:14.015Z | 11. februar 1987. | 1987-02-11T00:00:00.000Z |
| | | 1453-05-29T23:59:59.999Z | 29. maj 1453. | 1453-05-29T00:00:00.000Z |
| | PPPP | 1987-02-11T12:13:14.015Z | sreda, 11. februar 1987. | 1987-02-11T00:00:00.000Z |
| | | 1453-05-29T23:59:59.999Z | nedjelja, 29. maj 1453. | 1453-05-29T00:00:00.000Z |
| Long localized time | p | 1987-02-11T12:13:14.015Z | 12:13 | 1987-02-11T12:13:00.000Z |
| | | 1453-05-29T23:59:59.999Z | 23:59 | 1453-05-29T23:59:00.000Z |
| | pp | 1987-02-11T12:13:14.015Z | 12:13:14 | 1987-02-11T12:13:14.000Z |
| | | 1453-05-29T23:59:59.999Z | 23:59:59 | 1453-05-29T23:59:59.000Z |
| | ppp | 1987-02-11T12:13:14.015Z | 12:13:14 GMT+0 | Errored |
| | | 1453-05-29T23:59:59.999Z | 23:59:59 GMT+0 | Errored |
| | pppp | 1987-02-11T12:13:14.015Z | 12:13:14 (GMT+00:00) | Errored |
| | | 1453-05-29T23:59:59.999Z | 23:59:59 (GMT+00:00) | Errored |
| Combination of date and time | Pp | 1987-02-11T12:13:14.015Z | 11. 02. 87. 12:13 | 1987-02-11T12:13:00.000Z |
| | | 1453-05-29T23:59:59.999Z | 29. 05. 53. 23:59 | 1453-05-29T23:59:00.000Z |
| | PPpp | 1987-02-11T12:13:14.015Z | 11. feb 87. 12:13:14 | 1987-02-11T12:13:14.000Z |
| | | 1453-05-29T23:59:59.999Z | 29. maj 53. 23:59:59 | 1453-05-29T23:59:59.000Z |
| | PPPppp | 1987-02-11T12:13:14.015Z | 11. februar 1987. u 12:13:14 GMT+0 | Errored |
| | | 1453-05-29T23:59:59.999Z | 29. maj 1453. u 23:59:59 GMT+0 | Errored |
| | PPPPpppp | 1987-02-11T12:13:14.015Z | sreda, 11. februar 1987. u 12:13:14 (GMT+00:00) | Errored |
| | | 1453-05-29T23:59:59.999Z | nedjelja, 29. maj 1453. u 23:59:59 (GMT+00:00) | Errored |
## `formatDistance`
If now is January 1st, 2000, 00:00.
| Date | Result | `includeSeconds: true` | `addSuffix: true` |
| ------------------------ | ----------------- | ---------------------- | --------------------- |
| 2006-01-01T00:00:00.000Z | oko 6 godina | oko 6 godina | za oko 6 godina |
| 2005-01-01T00:00:00.000Z | oko 5 godina | oko 5 godina | za oko 5 godina |
| 2004-01-01T00:00:00.000Z | oko 4 godine | oko 4 godine | za oko 4 godine |
| 2003-01-01T00:00:00.000Z | oko 3 godine | oko 3 godine | za oko 3 godine |
| 2002-01-01T00:00:00.000Z | oko 2 godine | oko 2 godine | za oko 2 godine |
| 2001-06-01T00:00:00.000Z | preko 1 godinu | preko 1 godinu | za preko 1 godinu |
| 2001-02-01T00:00:00.000Z | oko 1 godinu | oko 1 godinu | za oko 1 godinu |
| 2001-01-01T00:00:00.000Z | oko 1 godinu | oko 1 godinu | za oko 1 godinu |
| 2000-06-01T00:00:00.000Z | 5 meseci | 5 meseci | za 5 meseci |
| 2000-03-01T00:00:00.000Z | 2 meseca | 2 meseca | za 2 meseca |
| 2000-02-01T00:00:00.000Z | oko 1 mesec | oko 1 mesec | za oko 1 mesec |
| 2000-01-15T00:00:00.000Z | 14 dana | 14 dana | za 14 dana |
| 2000-01-02T00:00:00.000Z | 1 dan | 1 dan | za 1 dan |
| 2000-01-01T06:00:00.000Z | oko 6 sati | oko 6 sati | za oko 6 sati |
| 2000-01-01T01:00:00.000Z | oko 1 sat | oko 1 sat | za oko 1 sat |
| 2000-01-01T00:45:00.000Z | oko 1 sat | oko 1 sat | za oko 1 sat |
| 2000-01-01T00:30:00.000Z | 30 minuta | 30 minuta | za 30 minuta |
| 2000-01-01T00:15:00.000Z | 15 minuta | 15 minuta | za 15 minuta |
| 2000-01-01T00:01:00.000Z | 1 minuta | 1 minuta | za 1 minutu |
| 2000-01-01T00:00:25.000Z | manje od 1 minute | pola minute | za manje od 1 minutu |
| 2000-01-01T00:00:15.000Z | manje od 1 minute | manje od 20 sekundi | za manje od 1 minutu |
| 2000-01-01T00:00:05.000Z | manje od 1 minute | manje od 10 sekundi | za manje od 1 minutu |
| 2000-01-01T00:00:00.000Z | manje od 1 minute | manje od 5 sekundi | pre manje od 1 minute |
| 1999-12-31T23:59:55.000Z | manje od 1 minute | manje od 10 sekundi | pre manje od 1 minute |
| 1999-12-31T23:59:45.000Z | manje od 1 minute | manje od 20 sekundi | pre manje od 1 minute |
| 1999-12-31T23:59:35.000Z | manje od 1 minute | pola minute | pre manje od 1 minute |
| 1999-12-31T23:59:00.000Z | 1 minuta | 1 minuta | pre 1 minute |
| 1999-12-31T23:45:00.000Z | 15 minuta | 15 minuta | pre 15 minuta |
| 1999-12-31T23:30:00.000Z | 30 minuta | 30 minuta | pre 30 minuta |
| 1999-12-31T23:15:00.000Z | oko 1 sat | oko 1 sat | pre oko 1 sat |
| 1999-12-31T23:00:00.000Z | oko 1 sat | oko 1 sat | pre oko 1 sat |
| 1999-12-31T18:00:00.000Z | oko 6 sati | oko 6 sati | pre oko 6 sati |
| 1999-12-30T00:00:00.000Z | 2 dana | 2 dana | pre 2 dana |
| 1999-12-15T00:00:00.000Z | 17 dana | 17 dana | pre 17 dana |
| 1999-12-01T00:00:00.000Z | oko 1 mesec | oko 1 mesec | pre oko 1 mesec |
| 1999-11-01T00:00:00.000Z | 2 meseca | 2 meseca | pre 2 meseca |
| 1999-06-01T00:00:00.000Z | 7 meseci | 7 meseci | pre 7 meseci |
| 1999-01-01T00:00:00.000Z | oko 1 godinu | oko 1 godinu | pre oko 1 godinu |
| 1998-12-01T00:00:00.000Z | oko 1 godinu | oko 1 godinu | pre oko 1 godinu |
| 1998-06-01T00:00:00.000Z | preko 1 godinu | preko 1 godinu | pre preko 1 godinu |
| 1998-01-01T00:00:00.000Z | oko 2 godine | oko 2 godine | pre oko 2 godine |
| 1997-01-01T00:00:00.000Z | oko 3 godine | oko 3 godine | pre oko 3 godine |
| 1996-01-01T00:00:00.000Z | oko 4 godine | oko 4 godine | pre oko 4 godine |
| 1995-01-01T00:00:00.000Z | oko 5 godina | oko 5 godina | pre oko 5 godina |
| 1994-01-01T00:00:00.000Z | oko 6 godina | oko 6 godina | pre oko 6 godina |
## `formatDistanceStrict`
If now is January 1st, 2000, 00:00.
| Date | Result | `addSuffix: true` | With forced unit (i.e. `hour`) |
| ------------------------ | ---------- | ----------------- | ------------------------------ |
| 2006-01-01T00:00:00.000Z | 6 godina | za 6 godina | 52608 sati |
| 2005-01-01T00:00:00.000Z | 5 godina | za 5 godina | 43848 sati |
| 2004-01-01T00:00:00.000Z | 4 godine | za 4 godine | 35064 sata |
| 2003-01-01T00:00:00.000Z | 3 godine | za 3 godine | 26304 sata |
| 2002-01-01T00:00:00.000Z | 2 godine | za 2 godine | 17544 sata |
| 2001-06-01T00:00:00.000Z | 1 godina | za 1 godinu | 12408 sati |
| 2001-02-01T00:00:00.000Z | 1 godina | za 1 godinu | 9528 sati |
| 2001-01-01T00:00:00.000Z | 1 godina | za 1 godinu | 8784 sata |
| 2000-06-01T00:00:00.000Z | 5 meseci | za 5 meseci | 3648 sati |
| 2000-03-01T00:00:00.000Z | 2 meseca | za 2 meseca | 1440 sati |
| 2000-02-01T00:00:00.000Z | 1 mesec | za 1 mesec | 744 sata |
| 2000-01-15T00:00:00.000Z | 14 dana | za 14 dana | 336 sati |
| 2000-01-02T00:00:00.000Z | 1 dan | za 1 dan | 24 sata |
| 2000-01-01T06:00:00.000Z | 6 sati | za 6 sati | 6 sati |
| 2000-01-01T01:00:00.000Z | 1 sat | za 1 sat | 1 sat |
| 2000-01-01T00:45:00.000Z | 45 minuta | za 45 minuta | 1 sat |
| 2000-01-01T00:30:00.000Z | 30 minuta | za 30 minuta | 1 sat |
| 2000-01-01T00:15:00.000Z | 15 minuta | za 15 minuta | 0 sati |
| 2000-01-01T00:01:00.000Z | 1 minuta | za 1 minutu | 0 sati |
| 2000-01-01T00:00:25.000Z | 25 sekundi | za 25 sekundi | 0 sati |
| 2000-01-01T00:00:15.000Z | 15 sekundi | za 15 sekundi | 0 sati |
| 2000-01-01T00:00:05.000Z | 5 sekundi | za 5 sekundi | 0 sati |
| 2000-01-01T00:00:00.000Z | 0 sekundi | pre 0 sekundi | 0 sati |
| 1999-12-31T23:59:55.000Z | 5 sekundi | pre 5 sekundi | 0 sati |
| 1999-12-31T23:59:45.000Z | 15 sekundi | pre 15 sekundi | 0 sati |
| 1999-12-31T23:59:35.000Z | 25 sekundi | pre 25 sekundi | 0 sati |
| 1999-12-31T23:59:00.000Z | 1 minuta | pre 1 minute | 0 sati |
| 1999-12-31T23:45:00.000Z | 15 minuta | pre 15 minuta | 0 sati |
| 1999-12-31T23:30:00.000Z | 30 minuta | pre 30 minuta | 1 sat |
| 1999-12-31T23:15:00.000Z | 45 minuta | pre 45 minuta | 1 sat |
| 1999-12-31T23:00:00.000Z | 1 sat | pre 1 sat | 1 sat |
| 1999-12-31T18:00:00.000Z | 6 sati | pre 6 sati | 6 sati |
| 1999-12-30T00:00:00.000Z | 2 dana | pre 2 dana | 48 sati |
| 1999-12-15T00:00:00.000Z | 17 dana | pre 17 dana | 408 sati |
| 1999-12-01T00:00:00.000Z | 1 mesec | pre 1 mesec | 744 sata |
| 1999-11-01T00:00:00.000Z | 2 meseca | pre 2 meseca | 1464 sata |
| 1999-06-01T00:00:00.000Z | 7 meseci | pre 7 meseci | 5136 sati |
| 1999-01-01T00:00:00.000Z | 1 godina | pre 1 godine | 8760 sati |
| 1998-12-01T00:00:00.000Z | 1 godina | pre 1 godine | 9504 sata |
| 1998-06-01T00:00:00.000Z | 2 godine | pre 2 godine | 13896 sati |
| 1998-01-01T00:00:00.000Z | 2 godine | pre 2 godine | 17520 sati |
| 1997-01-01T00:00:00.000Z | 3 godine | pre 3 godine | 26280 sati |
| 1996-01-01T00:00:00.000Z | 4 godine | pre 4 godine | 35064 sata |
| 1995-01-01T00:00:00.000Z | 5 godina | pre 5 godina | 43824 sata |
| 1994-01-01T00:00:00.000Z | 6 godina | pre 6 godina | 52584 sata |
## `formatRelative`
If now is January 1st, 2000, 00:00.
| Date | Result |
| ------------------------ | -------------------------- |
| 2000-01-10T00:00:00.000Z | 10. 01. 00. |
| 2000-01-05T00:00:00.000Z | sledeću sredu u 00:00 |
| 2000-01-02T00:00:00.000Z | sutra u 00:00 |
| 2000-01-01T00:00:00.000Z | danas u 00:00 |
| 1999-12-31T00:00:00.000Z | juče u 00:00 |
| 1999-12-27T00:00:00.000Z | prošli ponedjeljak u 00:00 |
| 1999-12-21T00:00:00.000Z | 21. 12. 99. |