How do I round the result of time()
up (towards the future) to the next multiple of 5 minutes?
$now = time();
$next_five = ceil($now/300)*300;
This will give you the next round five minutes (always greater or equal the current time).
I think that this is what you need, based on your description.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With