]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Add week relative time threshold
authorIskren Chernev <iskren.chernev@gmail.com>
Fri, 24 Apr 2020 20:57:14 +0000 (23:57 +0300)
committerIskren Chernev <iskren.chernev@gmail.com>
Fri, 24 Apr 2020 20:57:14 +0000 (23:57 +0300)
src/lib/duration/humanize.js

index aec40437c3cf41faf8e65743c37942417e899254..8227bd7f0baf5e29607a75a57e12db204aedd995 100644 (file)
@@ -7,7 +7,8 @@ var thresholds = {
     s : 45,         // seconds to minute
     m : 45,         // minutes to hour
     h : 22,         // hours to day
-    d : 26,          // days to week
+    d : 26,         // days to week/month
+    w : 4,          // weeks to months
     M : 11          // months to year
 };