XF 2.1 Execute a function at certain timestamp

asprin

Active member
As part of my addon, I'm giving the user an option to enter a datetime value via a form and I'm storing this value in the table as Epoch. Is there a way I can run some code when that time is reached, sort of like a cron job?

For example:
User will select 22 Feb, 2020 16:30:00
At 22 Feb, 2020 16:30:01, can I invoke a function to run some code (which will basically perform a update query on a table). If so, where will I put this code and how would I call it?

EDIT: I found a Cron entry option under Tools in ACP. Any example of how I would set this up programmatically?
 
Top Bottom