amp-timeago
You can now use this component outside valid AMP documents using the Bento version of this component. Learn more in the Bento guide.
Description
Provides fuzzy timestamps by formatting dates as time ago (for example, 3 hours ago).
Required Scripts
<script async custom-element="amp-timeago" src="https://cdn.ampproject.org/v0/amp-timeago-0.1.js"></script>
Supported Layouts
Examples
Usage
Use the amp-timeago component to count up to, or away from, a specified date and time.
The component replaces the text node with a fuzzy timestamp, such as in 30 years or 3 hours ago.
Example:
<