Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 578 Bytes

time-ago.pipe.md

File metadata and controls

28 lines (20 loc) · 578 Bytes
Title Added Status Last reviewed
Time Ago pipe
v2.0.0
Active
2018-11-19

Converts a recent past date into a number of days ago.

Basic Usage

<div>
    Last modified: {{ date | adfTimeAgo }}
</div>

Details

The pipe finds the difference between the input date and the current date. If it is less than seven days then then the date will be formatted as "X days ago". Otherwise, the usual full date format is used.