LLMS_Abstract_Notification_View::get_date_relative( string $date = 'created' )
Retrieve a date relative to the current time
Parameters Parameters
- $date
-
(string) (Optional) Created or updated.
Default value: 'created'
Return Return
(string)
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 ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.8.0 | Introduced. |