library wp-human-timing
Function to format a time string in Twitter-esque, human readable time.
cnp/wp-human-timing
Function to format a time string in Twitter-esque, human readable time.
- Monday, November 23, 2015
- by cnp
- Repository
- 3 Watchers
- 0 Stars
- 0 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
Human Timing
Function to format a time string in Twitter-esque, human readable time., (*1)
Usage
<?php cnp_human_timing( $string, '<h1 class="title">'. $string .'</h1>' ); ?>
Parameters
$time (required): Timestamp used to calculate elapsed time., (*2)
Return Values
(string) Returns human-readable time. (i.e.: 3 months)., (*3)