monkeybidz Posted December 2, 2007 Share Posted December 2, 2007 I need to get a_ends to be 30 minutes from a_starts. Sell duration = 1 day. $time = mktime( substr($sessionVars["SELL_starts"], 8, 2), substr($sessionVars["SELL_starts"], 10, 2), substr($sessionVars["SELL_starts"], 12, 2), substr($sessionVars["SELL_starts"], 4, 2), substr($sessionVars["SELL_starts"], 6, 2), substr($sessionVars["SELL_starts"], 0, 4)); $a_starts = date("YmdHis",$time); $a_ends = $time+$sessionVars["SELL_duration"]*24*60*60; $a_ends = date("YmdHis", $a_ends); Link to comment https://forums.phpfreaks.com/topic/79795-time-question/ Share on other sites More sharing options...
monkeybidz Posted December 2, 2007 Author Share Posted December 2, 2007 I just really need the code for a_ends to = 30 after mktime posted above. Link to comment https://forums.phpfreaks.com/topic/79795-time-question/#findComment-404073 Share on other sites More sharing options...
monkeybidz Posted December 2, 2007 Author Share Posted December 2, 2007 OK! mktime+30 Minutes? Link to comment https://forums.phpfreaks.com/topic/79795-time-question/#findComment-404075 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.