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"; ?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.