Get current timestamp of schedule task

Get current timestamp of schedule task

от Ha Tuan Em -
Количество ответов: 2

Hi,

My work is reference to timestamp of schedule task for caculating.

So I do not know how we can get the current timestamp in a schedule task?

Приложение Capture.PNG
В ответ на Ha Tuan Em

Re: Get current timestamp of schedule task

от Davo Smith -
Изображение пользователя Core developers Изображение пользователя Particularly helpful Moodlers Изображение пользователя Peer reviewers Изображение пользователя Plugin developers
All the information about each scheduled task is stored in DB table mdl_task_scheduled.

This includes nextruntime (the timestamp for the next time after which the task will run again) and lastruntime (the timestamp when the task last completed).