Creating A Timestamp With Mktime()

 
<html>
<head>
<title>Creating a Timestamp with mktime()</title>
</head>
<body>
<div>
<?php
$ts = mktime( 2, 30, 0, 5, 1, 2004 );
print date("m/d/y G.i:s", $ts);print "<br/>";
print "The date is ";
print date("jS of F Y, \a\\t g.i a", $ts );?>
</div>
</body>
</html>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.