apply_filters( ‘human_time_diff’, string $since, int $diff, int $from, int $to )

In this article

Filters the human-readable difference between two timestamps.

Parameters

$sincestring
The difference in human-readable text.
$diffint
The difference in seconds.
$fromint
Unix timestamp from which the difference begins.
$toint
Unix timestamp to end the time difference.

Source

return apply_filters( 'human_time_diff', $since, $diff, $from, $to );

Changelog

VersionDescription
4.0.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.