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

ដោយ Benjamin Ellis នៅ
រូបភាព Particularly helpful Moodlers
Hi,

Just calling the PHP function time() will give you a timestamp but I am not sure that is what you are trying to do from your message.
មធ្យមភាគនៃរង្វាយតម្លៃ: -
ឆ្លើយតបទៅកាន់ 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).
មធ្យមភាគនៃរង្វាយតម្លៃ: -