Ervin Ter Ervin Ter - 2 months ago 12
PHP Question

PHP Date Time Current Time Add Minutes

Simple question but this is killing my time.

Any simple solution to add 30 minutes to current time in php with GMT+8?

Answer

I think one of the best solutions and easiest is:

strtotime("+30 minutes")

Maybe it's not the most efficient but is one of the more understandable.

Comments