- time: documentation ( source)
- strtotime: documentation ( source)
- gmdate: documentation ( source)
- define: documentation ( source)
<?php
if ( ! defined('PHP_EOL')) {
define('PHP_EOL', "\n");
}
$now = time();
$plusThreeHours = gmdate('M-j-Y-H-i', strtotime('+3 hours', $now));
echo 'Now: ', gmdate('M-j-Y-H-i', $now), PHP_EOL;
echo 'Plus 3 Hours: ', $plusThreeHours, PHP_EOL;