If I use
moment().startOf(\"minute\").fromNow();
I will get:
a few seconds ago a minute ago ...
Is it po
You can use fromNow() method.
fromNow()
moment().fromNow() moment([2007, 0, 29]).fromNow(); // 4 years ago
If you pass true, you can get the value without the suffix.
true
moment([2007, 0, 29]).fromNow(); // 4 years ago moment([2007, 0, 29]).fromNow(true); // 4 years
For more info you can refer source