久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      php數(shù)字轉(zhuǎn)時間的方法

      php數(shù)字轉(zhuǎn)時間的方法:首先創(chuàng)建一個PHP示例文件;然后定義一串?dāng)?shù)字;接著通過“date("Y-m-d H:i:s",$dotime);”方法把數(shù)字型時間按格式轉(zhuǎn)換成時間格式即可。

      php數(shù)字轉(zhuǎn)時間的方法

      推薦:《PHP視頻教程》

      php數(shù)值轉(zhuǎn)換時間及時間轉(zhuǎn)換數(shù)值代碼示例

      這篇文章主要介紹了php數(shù)值轉(zhuǎn)換時間及時間轉(zhuǎn)換數(shù)值用法,涉及php strtotime及date等函數(shù)實(shí)現(xiàn)日期的字符串格式與Unix時間戳格式轉(zhuǎn)換相關(guān)操作技巧,需要的朋友可以參考下本文實(shí)例講述了php數(shù)值轉(zhuǎn)換時間及時間轉(zhuǎn)換數(shù)值用法。分享給大家供大家參考,具體如下:

      echo $startime=strtotime(date("Y-m-d",time()));//當(dāng)天0點(diǎn)時間戳 echo "<br/>"; echo $endttime=strtotime(date("Y-m-d",time()).' 23:59:59');//當(dāng)天23:59:59的INT類型時間戳 echo "<br/>"; //把數(shù)值型轉(zhuǎn)成時間字符型 $dotime="1357985479"; echo date("Y-m-d H:i:s",$dotime);//把數(shù)字型時間按格式轉(zhuǎn)換成時間格 echo "<br/>"; //輸出當(dāng)前時間字符串型 echo strtotime(date('Y-m-d H:i:s',time())); echo "<br/>"; //把數(shù)值型轉(zhuǎn)成字符串型 echo date('Y-m-d H:i:s','1357985479'); echo "<br/>"; //把字符串型轉(zhuǎn)成數(shù)值型 echo strtotime('Y-m-d H:i:s'); //echo "<br/>"; //最近七天 echo strtotime("-7 days")

      運(yùn)行結(jié)果如下:

      1495065600 1495151999 2013-01-12 10:11:19 1495073470 2013-01-12 10:11:19 1494468670

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