markduce Posted July 24, 2006 Share Posted July 24, 2006 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 Link to comment https://forums.phpfreaks.com/topic/15466-timestamp-generation/ Share on other sites More sharing options...
king arthur Posted July 24, 2006 Share Posted July 24, 2006 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) ) Link to comment https://forums.phpfreaks.com/topic/15466-timestamp-generation/#findComment-62723 Share on other sites More sharing options...
markduce Posted July 24, 2006 Author Share Posted July 24, 2006 Cheers Link to comment https://forums.phpfreaks.com/topic/15466-timestamp-generation/#findComment-62725 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.