Hi there,
I am trying to make a game and in that game I have custom day lenght... actually 24 hours must be completed in 4 hours.
I have a start date like will be shown in the script below and I want to calculate so I can always show the game time and day
$startjoc = "0731033247";
$momentuljocului = date("mdHis");
$joctimpscadere = $momentuljocului - $startjoc;
$secundajocului = $joctimpscadere / 60;
$minutuljocului = $joctimpscadere * 6 / 60;
$orajocului = $joctimpscadere * 6 / 3600;
$ziuajocului = $joctimpscadere * 6 / 86400;
$secundajocului = explode(".",$secundajocului);
$minutuljocului = explode(".",$minutuljocului);
$orajocului = explode(".",$orajocului);
$ziuajocului = explode(".",$ziuajocului);
echo "Day $ziuajocului[0] Time $orajocului[0]:$minutuljocului[0]";
this is what I have tried but at an end didn't work... can anyone if I made myself pretty clear what I am trying to do to give me a hint here, please?
Thanks in advance!!