1loc
1loc copied to clipboard
format relative time
With the Intl.RelativeTimeFormat constructor, we can format relative time in a locale-sensitive manner with ease. This lets us format relative time strings without the hassle that comes from manipulating strings.
Good work @walebant, better than using the famous package "moment" !