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