2017 © Pedro Peláez
 

library time-ago

This package calculates the time since a specific `DateTime` object en displays it in a human readable format.

image

commentar/time-ago

This package calculates the time since a specific `DateTime` object en displays it in a human readable format.

  • Sunday, September 8, 2013
  • by PeeHaa
  • Repository
  • 1 Watchers
  • 0 Stars
  • 167 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

TimeAgo

Build Status Scrutinizer Quality Score Code Coverage Latest Stable Version Total Downloads, (*1)

Date renderer for the Commentar project. This package calculates the time since a specific DateTime object en displays it in a human readable format. E.g. 5 minutes ago., (*2)

The supported steps are:, (*3)

  • seconds
  • minutes
  • hours
  • days
  • weeks
  • months
  • years

It is installed by default when first installing the Commentar system., (*4)

Installation

If you are running a standard installation of Commentar you don't have to install anything (it is the default timestamp formatter of the system)., (*5)

Add the formatter to the project's composer.json file:, (*6)

"require": {
    "commentar/time-ago": "0.0.*",
}

Use it in your templates:, (*7)

<?php echo $this->renderView('TimeAgo', ['timestamp' => $comment['updated']]); ?>

The Versions

08/09 2013

dev-master

9999999-dev https://github.com/Commentar/TimeAgo

This package calculates the time since a specific `DateTime` object en displays it in a human readable format.

  Sources   Download

MIT

The Requires

  • php >=5.4

 

date comments formatter time commentar

08/09 2013

v0.0.3

0.0.3.0 https://github.com/Commentar/TimeAgo

This package calculates the time since a specific `DateTime` object en displays it in a human readable format.

  Sources   Download

MIT

The Requires

  • php >=5.4

 

date comments formatter time commentar

08/09 2013

v0.0.2

0.0.2.0 https://github.com/Commentar/TimeAgo

This package calculates the time since a specific `DateTime` object en displays it in a human readable format.

  Sources   Download

MIT

The Requires

  • php >=5.4

 

date comments formatter time commentar

07/09 2013

v0.0.1

0.0.1.0 https://github.com/Commentar/TimeAgo

This package calculates the time since a specific `DateTime` object en displays it in a human readable format.

  Sources   Download

MIT

The Requires

  • php >=5.4

 

date comments formatter time commentar