1
計算剩餘秒我有這樣的代碼:在PHP
$d = ($subTime/(60*60*24))%365;
$h = ($subTime/(60*60))%24;
$m = ($subTime/60)%60;
$s = ($subTime);
echo $d." days\n";
echo $h." hours\n";
echo $m." minutes\n";
echo $s." seconds\n";
呼應:90天0小時32分鐘7777955秒
是否有一個公式,而不是7777955秒顯示從1至60 ?
'$ S = $ SUBTIME - ($ d * 86400) - ($ H * 3600) - ($ M * 60);' –