dozent_ago_time( int $from, int $to )
Simplified human_time_diff() to dozent_ago_time()
Parameters
- $from
-
(int) (Required) Unix timestamp from which the difference begins.
- $to
-
(int) (Optional) Unix timestamp to end the time difference. Default becomes time() if not set.
Return
(string) Human readable time difference.
Source
File: includes/core-functions.php
function dozent_ago_time($from, $to = 0) { $from_time = is_numeric( $from ) ? $from : strtotime( $from ); $to_time = is_numeric( $to ) ? $to : strtotime( $to ); $ago_text = __('ago', 'dozent'); return human_time_diff( $from_time , $to_time ) . ' ' . apply_filters( 'dozent_ago_text', $ago_text ); }
Changelog
Version | Description |
---|---|
DozentLMS 1.0.0 | Introduced. |