检查当前时间是否与间隔匹配[重复]

I have a field in a table that consists of intervals: 10 mins, 15 mins, 20 mins, 30 mins, 45 mins, 60 mins. Cron will run a PHP file after every 5 minutes and I need to check if it's the time for my task to run, based on these intervals and I am confused about it.

I thought of getting the presentime, get the minutes and then check it accordingly. But I got lost somewhere and couldn't figure out, what to do further. Any help would be appreciated.

Example: If it's :

7:05 (I don't need to run any task, as there isn't any such interval)

7:10 or 7:11 (I need to run tasks, that have 10 minutes set as interval)

7:15 or 7:16 (I need to run tasks, that have 15 minutes set as interval)

7:20 or 7:21 (I need to run tasks, that have 10 minutes interval set, as well as 20 mins) and so on

</div>