LLMS_Quiz_Attempt::get_time( integer $precision = 2 )

Get the time spent on the quiz from start to end

Parameters Parameters


(integer) (Optional) Precision passed to llms_get_date_diff().

Default value: 2

Top ↑

Return Return


Top ↑

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 );

Top ↑

Changelog Changelog

Version Description
3.9.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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