<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之旅 廣告
                # 時間戳友好格式化 ``` /** * 格式化時間戳 (剛剛,1分鐘前)... * * @param [type] $posttime 時間戳 * @return string */ function time_ago($posttime) { //當前時間的時間戳 $nowtimes = time(); //相差時間戳 $counttime = $nowtimes - $posttime; //進行時間轉換 if ($counttime <= 60) { return '剛剛'; } else if ($counttime > 60 && $counttime <= 120) { return '1分鐘前'; } else if ($counttime > 120 && $counttime <= 180) { return '2分鐘前'; } else if ($counttime > 180 && $counttime < 3600) { return intval(($counttime / 60)) . '分鐘前'; } else if ($counttime >= 3600 && $counttime < 3600 * 24) { return intval(($counttime / 3600)) . '小時前'; } else if ($counttime >= 3600 * 24 && $counttime < 3600 * 24 * 2) { return '昨天'; } else if ($counttime >= 3600 * 24 * 2 && $counttime < 3600 * 24 * 3) { return '前天'; } else if ($counttime >= 3600 * 24 * 3 && $counttime <= 3600 * 24 * 7) { return intval(($counttime / (3600 * 24))) . '天前'; } else if ($counttime >= 3600 * 24 * 7 && $counttime <= 3600 * 24 * 30) { return intval(($counttime / (3600 * 24 * 7))) . '周前'; } else if ($counttime >= 3600 * 24 * 30 && $counttime <= 3600 * 24 * 365) { return intval(($counttime / (3600 * 24 * 30))) . '個月前'; } else if ($counttime >= 3600 * 24 * 365) { return intval(($counttime / (3600 * 24 * 365))) . '年前'; } } ```
                  <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>

                              哎呀哎呀视频在线观看