Angular 2 “time ago” pipe
The following library does equivalent job in English and could be forked to change the language or support different ones: https://www.npmjs.com/package/time-ago-pipe npm install time-ago-pipe –save Then in the @NgModule you want to use it in: import {TimeAgoPipe} from ‘time-ago-pipe’ @NgModule({ imports: [… etc …], declarations: [AppComponent, …etc…, TimeAgoPipe], bootstrap: [AppComponent] }) And in the template: … Read more