Source Code:
(back to article)
<?php $current_time = time(); $new_time = $current_time + 5 * 60; $new_datetime = date('Y-m-d H:i:s', $new_time); echo "Current Time: " . date('Y-m-d H:i:s', $current_time) . "\n"; echo "New Time (5 minutes in the future): " . $new_datetime . "\n"; ?>
Result:
Report an issue