<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>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                #### php字符串類型時間轉為秒數 ```php $len = "00:05:10.11"; $time = date_parse($len); $seconds = $time['hour'] * 3600 + $time['minute'] * 60 + $time['second']; ``` #### 判斷兩天是否是同一天 ```php //判斷兩天是否是同一天 function isDiffDays($last_date, $this_date) { if (($last_date['year'] === $this_date['year']) && ($this_date['yday'] === $last_date['yday'])) { return true; } else { return false; } ``` #### 傳入時間計算距離現在第幾周 > 未區分星期一,直接計算 ```php // 傳入開學時間計算第幾周 public function current_week($time_chuo_of_first_day = '') { //今天的時間戳 $month = date('n'); //獲取月 n $day = date('d'); //獲取日 d $year = date('Y'); //獲取年 Y $time_chuo_of_current_day = mktime(0, 0, 0, $month, $day, $year); $cha = ($time_chuo_of_current_day - $time_chuo_of_first_day) / 60 / 60 / 24; $zhou = (int)(($cha+1) / 7 + 1); return $zhou; } ``` > 傳入周,計算周一的日期 ```php // 計算周一的時間 public function mon($date){ $now = strtotime($date); //當時的時間戳 $number = date("w",$now); //當時是周幾 $number = $number == 0 ? 7 : $number; //如遇周末,將0換成7 $diff_day = $number - 1; //求到周一差幾天 return date("Y-m-d",$now - ($diff_day * 60 * 60 * 24)); } ```
                  <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>

                              哎呀哎呀视频在线观看