learndash_get_activity_human_time_diff

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 #

$activity_started

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

$activity_completed

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

$minumim_diff

(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 #

Changelog
Version Description
2.3.0.3 Use human_time_diff function for output.
2.3.0 Introduced.