Jump to content

Archived

This topic is now archived and is closed to further replies.

markduce

Timestamp generation

Recommended Posts

OK, I have all the details about a point in time, I am just unsure how to turn it all into a Unix timestamp.

Can anyone help me out?

<?
$day="02";
$month="04";
$year="2006";
$hours="09";
$mins="50";
?>

Thanks in advance

Share this post


Link to post
Share on other sites
Use mktime($hours, $mins, $seconds, $day, $month, $year). (Or zero out any of the parameters, e.g. for zero seconds, mktime($hours, $mins, 0, $day, $month, $year) )

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.