learndash_get_activity_human_time_diff( int $activity_started, int $activity_completed, int $minimum_diff = 60 )
Calculate the human readable time spent on activity.
Description #
Parameters #
- $activity_started
-
(int) (Required) The start timestamp to compare. Default 0.
- $activity_completed
-
(int) (Required) The completed timestamp to compare. Default 0.
- $minimum_diff
-
(int) (Optional) The minimum difference between started and completed time.
Default value: 60
Return #
(string) The human readable time difference.
Source #
File: includes/ld-reports.php
Changelog #
Version | Description |
---|---|
2.3.0.3 | Use human_time_diff function for output. |
2.3.0 | Introduced. |