cnp / wp-human-timing
Function to format a time string in Twitter-esque, human readable time.
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/cnp/wp-human-timing
Requires
- php: >=5.3.3
This package is auto-updated.
Last update: 2025-09-15 03:38:13 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).