cnp/wp-human-timing

Function to format a time string in Twitter-esque, human readable time.

dev-master 2015-11-23 20:10 UTC

This package is auto-updated.

Last update: 2024-12-15 02:14:05 UTC


README

Function to format a time string in Twitter-esque, human readable time.

Usage

<?php cnp_human_timing( $string, '<h1 class="title">'. $string .'</h1>' ); ?>

Parameters

$time (required): Timestamp used to calculate elapsed time.

Return Values

(string) Returns human-readable time. (i.e.: 3 months).