Mega Code Archive

 
Categories / Php / Date Time
 

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>