LLMS_Abstract_Notification_View::get_date_relative( string $date = 'created' )

Retrieve a date relative to the current time

Parameters Parameters


(string) (Optional) Created or updated.

Default value: 'created'

Top ↑

Return Return


Top ↑

Source Source

File: includes/abstracts/llms.abstract.notification.view.php

	public function get_date_relative( $date = 'created' ) {
		return llms_get_date_diff( current_time( 'timestamp' ), $this->get_date( $date, 'U' ), 1 );

Top ↑

Changelog Changelog

Version Description
3.8.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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