tweak humanised time strings

This commit is contained in:
Erik 2022-07-09 16:40:05 +03:00
parent 15b62e56cc
commit 0d0c17f41f
Signed by untrusted user: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB

View File

@ -17,21 +17,22 @@ const Constants = {
const StartQuotes = Object.keys(Constants.QuotePairs);
const QuoteMarks = StartQuotes + Object.values(Constants.QuotePairs);
const humaniser = humaniseDuration.humanizer({
language: 'short',
languages: {
short: {
y: () => "y",
mo: () => "mo",
w: () => "w",
d: () => "d",
h: () => "h",
m: () => "m",
s: () => "s",
ms: () => "ms"
}
}
});
const humaniser = humaniseDuration;
// const humaniser = humaniseDuration.humanizer({
// language: 'short',
// languages: {
// short: {
// y: () => "y",
// mo: () => "mo",
// w: () => "w",
// d: () => "d",
// h: () => "h",
// m: () => "m",
// s: () => "s",
// ms: () => "ms"
// }
// }
// });
const has = (o, k) => Object.prototype.hasOwnProperty.call(o, k);