mktime() produces a GMT timestamp.
<?php
echo 'Output of mktime(): ' . mktime() . ".<br>\n";
echo 'Output of gmmktime(): ' . gmmktime() . ".<br>\n";
echo 'date/mktime: ' . date('r', mktime()) . ".<br>\n";
echo 'date/gmmktime: ' . date('r', gmmktime()) . ".<br>\n";
echo 'gmdate/mktime: ' . gmdate('r', mktime()) . ".<br>\n";
echo 'gmdate/gmmktime' . gmdate('r', gmmktime()) . ".<br>\n";
?>
Related examples in the same category