#javascript RelativeTimeFormat allows us to format times with “time ago”.
It takes care of formatting dates and times by passing certain parameters.
Example: new Intl.RelativeTimeFormat(“pt”, { numeric: “auto” }).format(5, “day”);
#front #frontend #web #webdev #es #es6 #react