DEV Community

Discussion on: Calculating Relative Time in JavaScript

Collapse
 
dave_z80 profile image
David Lazar

All good. You could also mention momentJS as that venerable code takes your code to the next level, providing for localized, internationalized relative times, with some neat extensions to handle holidays, business days, and other useful gaps.

Collapse
 
natclark profile image
Nathan

Interesting, Moment looks much more powerful than Intl. Thanks for sharing!