cnp/wp-human-timing

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

Maintainers

Package info

github.com/Clark-Nikdel-Powell/Module-WP-Human-Timing

pkg:composer/cnp/wp-human-timing

Statistics

Installs: 6

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

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

This package is auto-updated.

Last update: 2026-02-15 04:37:32 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).