@mll-lab/js-utils 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/date.d.ts +8 -8
- package/dist/index.common.js +6 -6
- package/dist/index.common.js.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -15039,8 +15039,8 @@ const SECONDLESS_DATE_TIME_FORMAT = 'y-MM-dd HH:mm';
|
|
|
15039
15039
|
function parseSecondlessDateTime(value) {
|
|
15040
15040
|
return parseDate(value, SECONDLESS_DATE_TIME_FORMAT);
|
|
15041
15041
|
}
|
|
15042
|
-
function formatSecondlessDateTime(
|
|
15043
|
-
return format(
|
|
15042
|
+
function formatSecondlessDateTime(date) {
|
|
15043
|
+
return format(date, SECONDLESS_DATE_TIME_FORMAT, { locale: de$1 });
|
|
15044
15044
|
}
|
|
15045
15045
|
const GERMAN_DATE_TIME_FORMAT = 'dd.MM.y HH:mm';
|
|
15046
15046
|
function parseGermanDateTime(value) {
|
|
@@ -15053,15 +15053,15 @@ const ISO_DATE_TIME_FORMAT = 'y-MM-dd HH:mm:ss';
|
|
|
15053
15053
|
function parseIsoDateTime(value) {
|
|
15054
15054
|
return parseDate(value, ISO_DATE_TIME_FORMAT);
|
|
15055
15055
|
}
|
|
15056
|
-
function formatIsoDateTime(
|
|
15057
|
-
return format(
|
|
15056
|
+
function formatIsoDateTime(date) {
|
|
15057
|
+
return format(date, ISO_DATE_TIME_FORMAT, { locale: de$1 });
|
|
15058
15058
|
}
|
|
15059
15059
|
const DOTLESS_DATE_FORMAT = 'yMMdd';
|
|
15060
15060
|
function parseDotlessDate(value) {
|
|
15061
15061
|
return parseDate(value, DOTLESS_DATE_FORMAT);
|
|
15062
15062
|
}
|
|
15063
|
-
function formatDotlessDate(
|
|
15064
|
-
return format(
|
|
15063
|
+
function formatDotlessDate(date) {
|
|
15064
|
+
return format(date, DOTLESS_DATE_FORMAT, { locale: de$1 });
|
|
15065
15065
|
}
|
|
15066
15066
|
|
|
15067
15067
|
function pluralize(amount, singular, plural) {
|