Php time plus 30 minutes

<?php $startTime = date("Y-m-d H:i:s"); //display the starting time echo 'Starting Time: '.$startTime; //add 30 minutes to time $cenvertedTime = date('Y-m-d H:i:s',strtotime('+30 minutes',strtotime($startTime))); //display the converted time echo 'Converted Time (added 30 minutes): '.$cenvertedTime;
php time plus 30 minutes

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.