General developer forum

Time since last login

 
Picture of Guillermo Biot
Time since last login
 

Hi,

I am using moodle to check the level of new students in a certain area of knowledge. There is a course that consists of several quizzes and I would like to show them how much time they have spent doing the course. Provided each student can access the course once, I thought the login timestamp would be accurate enough for me.

How could I access the last login timestamp of a user from javascript to create the clock? Or how could I provide such information to the students?

I saw the time limit option in the quiz settings but the course consists of several quizzes and the clock shows the remaining time of one quiz only.

I know PHP, SQL and javascript but I'm a bit lost with moodle structure. Any help is welcomed.


 
Average of ratings: -