gmmktime and mktime : gmmktime « Date « PHP






gmmktime and mktime

 
<?php 

echo 'Output of <code>mktime()</code>: ' . mktime() . ".<br>\n"; 

echo 'Output of <code>gmmktime()</code>: ' . gmmktime() . ".<br>\n"; 

echo 'Local time zone: ' . date('O') . ".<br>\n"; 
?>
  
  








Related examples in the same category

1.Epoch timestamps and gmmktime()
2.Getting a specific GMT-based epoch timestamp