cnp / wp-human-timing
Function to format a time string in Twitter-esque, human readable time.
dev-master
2015-11-23 20:10 UTC
Requires
- php: >=5.3.3
This package is auto-updated.
Last update: 2024-10-15 01:52:50 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).