<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                [![](http://static.phpgrace.com/statics/images/downcode.png)](http://www.phpgrace.com/tools/download/18.html) # 日期時間換算類 ## **功能描述** 日期時間換算,時間戳、時間差、過去時間計算。 ## **部署說明** > 下載?timer.php?部署到?phpGrace/tools?文件夾下。 使用說明 ## **當前年份 currentYear()** ~~~ $timer?=?new?phpGrace\tools\timer(); echo?$timer->currentYear(); ~~~ ## **當前月份 currentMonth()** ~~~ $timer?=?new?phpGrace\tools\timer(); echo?$timer->currentMonth(); ~~~ ## **當前日期 currentDay()** ~~~ $timer?=?new?phpGrace\tools\timer(); echo?$timer->currentDay(); ~~~ ## **當前時 currentHour()** ~~~ $timer?=?new?phpGrace\tools\timer(); echo?$timer->currentHour(); ~~~ ## **當前分 currentMin()** ~~~ $timer?=?new?phpGrace\tools\timer(); echo?$timer->currentMin(); ~~~ ## **當前秒 currentSecond()** ~~~ $timer?=?new?phpGrace\tools\timer(); echo?$timer->currentSecond(); ~~~ ## **按照指定格式及指定時間戳計算時間 dateTime()** 參數: ~~~ 1、$format?=?"Y-m-d?H:i:s"?時間格式,可省參數?【默認?"Y-m-d?H:i:s"】 2、$currentTime?=?null?//指定的時間戳,可省參數?【默認當前時間】 ~~~ 演示: ~~~ $timer?=?new?phpGrace\tools\timer(); echo?$timer->dateTime('m/d/Y?H:i:s').'<br?/>';//當前時間 echo?$timer->dateTime('m/d/Y?H:i:s',?1524624358).'<br?/>';?//指定時間戳 ~~~ ## **將日期時間轉換時間戳 timeStamp()** 參數: ~~~ 日期及時間,支持的格式?Y-m-d?H:i:s?或?m/d/Y?H:i:s ~~~ 演示: ~~~ $timer?=?new?phpGrace\tools\timer(); echo?'計算時間戳?:?'.$timer->timeStamp('2018-04-24?15:48:04').'<br?/>'; ~~~ ## **計算日期與日期間的差值 DValue($timer1, $timer2)** 參數: ~~~ 1、起始日期及時間,支持的格式?Y-m-d?H:i:s?或?m/d/Y?H:i:s 2、結束日期及時間,支持的格式?Y-m-d?H:i:s?或?m/d/Y?H:i:s ~~~ 演示: ~~~ $timer?=?new?phpGrace\tools\timer(); echo?'計算時間差?:?'.$timer->DValue('2018-04-25?15:48:18',?'04/25/2018?15:48:12'); ~~~ ## **計算過去時間并格式化 fromTime($time)** 參數:時間戳 演示: ~~~ $timer?=?new?phpGrace\tools\timer(); echo?$timer->fromTime($timer->timeStamp('2018-04-24?15:48:04')); ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看