2017 © Pedro Peláez
 

craft-plugin time-ago

Displays time ago for timestamp

image

mdxdave/time-ago

Displays time ago for timestamp

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 10 % Grown

The README.md

TimeAgo plugin for Craft CMS 4.x

Displays time ago for a given timestamp value within a Craftcms3 Twig template., (*1)

Requirements

This plugin requires Craft CMS 4.0.0 or later., (*2)

Installation

To install the plugin, follow these instructions., (*3)

  1. Open your terminal and go to your Craft project:, (*4)

    cd /path/to/project
  2. Then tell Composer to load the plugin:, (*5)

    composer require mdxdave/time-ago
  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for TimeAgo., (*6)

Using TimeAgo

Just use the following code in your Twig template file:, (*7)

    {{ entry.postDate.getTimestamp()|timeAgo }}

If you want to use another language than english, use:, (*8)

    {{ entry.postDate.getTimestamp()|timeAgo("de") }}

Brought to you by MDXDave, (*9)

The Versions

01/08 2017

dev-master

9999999-dev

Displays time ago for timestamp

  Sources   Download

MIT

The Requires

 

cms timeago craftcms craft-plugin craft

01/08 2017

1.0.0

1.0.0.0

Displays time ago for timestamp

  Sources   Download

MIT

The Requires

 

cms timeago craftcms craft-plugin craft