LLMS_Quiz_Attempt::get_time( integer $precision = 2 )
Get the time spent on the quiz from start to end
Parameters Parameters
- $precision
-
(integer) (Optional) Precision passed to
llms_get_date_diff()
.Default value: 2
Return Return
(string)
Source Source
File: includes/models/model.llms.quiz.attempt.php
public function get_time( $precision = 2 ) { return llms_get_date_diff( $this->get_date( 'start', 'U' ), $this->get_date( 'end', 'U' ), $precision ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.9.0 | Introduced. |