Moodle dates

Moodle dates

by Luis de Vasconcelos -
Number of replies: 1

The dates and times in the various Moodle database tables are stored as unix timestamps. How does Moodle convert these integers into the "human readable" dates that are displayed throughout Moodle?

Average of ratings: -
In reply to Luis de Vasconcelos

Re: Moodle dates

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Moodle uses the userdate function (in moodlelib.php) which is a wrapper (to handle timezones, etc) around the PHP function gmstrftime.

Average of ratings: Useful (1)