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 Description


Parameters Parameters

$activity_started

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

$activity_completed

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

$minumim_diff

(Optional) The minumm difference between started and completed time.

Default value: 60


Top ↑

Return Return

(string) The human readable time difference.


Top ↑

Source Source

File: includes/ld-reports.php


			

Top ↑

Changelog Changelog

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

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.