Closed dfaulken closed 6 years ago
Great catch @dfaulken. Easily reproducible.
Solution: http://momentjs.com/docs/#/displaying/fromnow/
If you pass true, you can get the value without the suffix.
moment([2007, 0, 29]).fromNow(); // 4 years ago moment([2007, 0, 29]).fromNow(true); // 4 years
Looking at the screen which lists multiple upcoming departures of a particular route at a stop, I saw this:
Since I didn't look at my phone during the intervening 4 minutes, it caught me off guard a little. Perhaps we should distinguish between "in 4 minutes" and "4 minutes ago"?