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

Output formatted time to display human readable time difference.

Description

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

Source

File: bp-forums/common/functions.php

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

Changelog

Changelog
Version Description
bbPress (r2544) Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.