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).