Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

Rounding PHP Time

$
0
0

I have a really easy php function that displays the current time + a certain amount of time...seen below. Is there a way to round the time to the nearest 10 minutes?

 

Thanks, Dave

$duration = date("hi A", strtotime("+45 minutes"))

 

 


Viewing all articles
Browse latest Browse all 13200

Trending Articles