bbp_time_since( string $older_date, string $newer_date = false, int $gmt = false )

Output formatted time to display human readable time difference.


Description Description


Parameters Parameters

$older_date

(Required) Unix timestamp from which the difference begins.

$newer_date

(Optional) Unix timestamp from which the difference ends. False for current time.

Default value: false

$gmt

(Optional) Whether to use GMT timezone. Default is false.

Default value: false


Top ↑

Source Source

File: includes/common/formatting.php

function bbp_time_since( $older_date, $newer_date = false, $gmt = false ) {
	echo bbp_get_time_since( $older_date, $newer_date, $gmt );
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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