How do user reports/logs show time to second accuracy

How do user reports/logs show time to second accuracy

deur jhong tao -
Getal antwoorde: 2

Im having a situation where one of our moodle teachers requires activity reports / logs to to also display the seconds in the time field so that he can be able to see the time spent on each activity. I have been trying to modify the code to solve this but to no luck.
Will you please assist me with code that I need to add/modify to achieve this.
thanks

my email:jhong.tao@foxmail.com



Gemiddeld van beoordelings: -
In antwoord op jhong tao

Re: How do user reports/logs show time to second accuracy

deur Davo Smith -
Prentjie van Core developers Prentjie van Particularly helpful Moodlers Prentjie van Peer reviewers Prentjie van Plugin developers
How would displaying the seconds on a log entry allow you to work out how long someone spent on an activity?

All you would know is the time when a user did each action - it wouldn't tell you anything at all about how they spent the time in between each logged action (were they watching YouTube in a different browser window and occasionally click on a link in Moodle, without stopping to read what was there?)
Gemiddeld van beoordelings:Useful (4)
In antwoord op jhong tao

Re: How do user reports/logs show time to second accuracy

deur Tim Hunt -
Prentjie van Core developers Prentjie van Documentation writers Prentjie van Particularly helpful Moodlers Prentjie van Peer reviewers Prentjie van Plugin developers
Time is stored in the database accurate to the nearest second, so by directy querying the database you can get it.

And, from Moodle 4.0 onwards, the full time will be shown in the UI: MDL-71927.

But, note also what Davo days.
Gemiddeld van beoordelings:Useful (4)