Jump to content

Time Question


monkeybidz

Recommended Posts

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

Archived

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

×
×
  • Create New...

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.