Simple question but this is killing my time.
Any simple solution to add 30 minutes to current time in php with GMT+8?
In addition to Khriz's answer.
If you need to add 5 minutes to the current time in Mysql format you can do:
Mysql
$cur_time=date("Y-m-d H:i:s"); $duration='+5 minutes'; echo date('Y-m-d H:i:s', strtotime($duration, strtotime($cur_time)));