tweak humanised time strings
This commit is contained in:
parent
15b62e56cc
commit
0d0c17f41f
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user