learndash_get_activity_human_time_diff( int $activity_started,  int $activity_completed,  int $minumim_diff = 60 )

Calculate the human readable time spent on activity.

Description #

Parameters #


(int) (Required) The start timestamp to compare. Default 0.


(int) (Required) The completed timestamp to compare. Default 0.


(int) (Optional) The minumm 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 Use human_time_diff function for output.
2.3.0 Introduced.