久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      php怎么將秒數(shù)轉(zhuǎn)時(shí)間

      php將秒數(shù)轉(zhuǎn)時(shí)間的方法:1、創(chuàng)建一個(gè)PHP示例文件;2、通過(guò)“function Sec2Time($time){…}”方法將秒數(shù)轉(zhuǎn)換為時(shí)間即可。

      php怎么將秒數(shù)轉(zhuǎn)時(shí)間

      本文操作環(huán)境:Windows7系統(tǒng)、PHP7.1版,DELL G3電腦

      php怎么將秒數(shù)轉(zhuǎn)時(shí)間?

      php 將秒數(shù)轉(zhuǎn)換為時(shí)間(年、天、小時(shí)、分、秒)

      $t=1637544; $d=Sec2Time($t);

      $d為 0年18天 22小時(shí)52分24秒

      將秒數(shù)轉(zhuǎn)換為時(shí)間(年、天、小時(shí)、分、秒)

      function Sec2Time($time){     if(is_numeric($time)){     $value = array(       "years" => 0, "days" => 0, "hours" => 0,       "minutes" => 0, "seconds" => 0,     );     if($time >= 31556926){       $value["years"] = floor($time/31556926);       $time = ($time%31556926);     }     if($time >= 86400){       $value["days"] = floor($time/86400);       $time = ($time%86400);     }     if($time >= 3600){       $value["hours"] = floor($time/3600);       $time = ($time%3600);     }     if($time >= 60){       $value["minutes"] = floor($time/60);       $time = ($time%60);     }     $value["seconds"] = floor($time);     //return (array) $value;     $t=$value["years"] ."年". $value["days"] ."天"." ". $value["hours"] ."小時(shí)". $value["minutes"] ."分".$value["seconds"]."秒";     Return $t;           }else{     return (bool) FALSE;     }  }

      推薦學(xué)習(xí):《PHP視頻教程》

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)