Get current timestamp of schedule task

Get current timestamp of schedule task

por Ha Tuan Em -
Número de respostas: 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?

Anexo Capture.PNG
Em resposta a 'Ha Tuan Em'

Re: Get current timestamp of schedule task

por Davo Smith -
Foto de Core developers Foto de Particularly helpful Moodlers Foto de Peer reviewers Foto de 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).