<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之旅 廣告
                [TOC] ## int <span style="color:red;">**time**</span>(void ) 返回當前的 Unix 時間戳 返回自從 Unix 紀元(格林威治時間 1970 年 1 月 1 日 00:00:00)到當前時間的秒數 ## int <span style="color:red;">**mktime**</span>(int 時, int 分, int 秒, int 月, int 天, int 年, int $is_dst ) 取得一個日期的 Unix 時間戳(參數都是可選得) ``` mktime(0, 0, 0, 4, 25, 2012); ``` <span style="color:red;"></span> ## int <span style="color:red;">**strtotime**</span>() 將任何英文文本的日期時間描述解析為 Unix 時間戳 ``` echo strtotime(""now""); echo strtotime(""10 September 2000""); echo strtotime(""+1 day""); echo strtotime(""+1 week""); echo strtotime(""+1 week 2 days 4 hours 2 seconds""); echo strtotime(""next Thursday""); echo strtotime(""last Monday"");" int strtotime ( string $time [, int $now ] ) ``` ## string <span style="color:red;">**date**</span>($format,$intstamp=time()) 格式化一個本地時間/日期 ``` date('Y年m月d日 H:i:s'); //2018年04月25日 20:45:54 date('Y年m月d日 H:i:s', time()); //2018年04月25日 20:45:54 date('Y-m-01'); //當月第一天 date('Y-m-t'); //當月最后一天 ``` ## **checkdate**() 驗證一個格里高里日期 ``` if(checkdate(6,31,2012)){ echo '成立'; }else{ echo '不成立'; } ``` ## **microtime**() 返回當前 Unix 時間戳和微秒數 ``` $start=microtime(true); sleep(3); $stop=microtime(true); echo $stop-$start;" mixed microtime ([ bool $get_as_float ] ) ``` ## bool <span style="color:red;">**date_default_timezone_set**</span>(string $timezone_identifier) 設定用于一個腳本中所有日期時間函數的默認時區 ``` date_default_timezone_set('PRC'); ``` ## bool **checkdate**( int $month , int $day , int $year ) 如果給出的日期有效則返回 TRUE,否則返回 FALSE ## array **getdate** ([ int $timestamp ] ) 取得日期/時間信息; 返回一個根據 timestamp 得出的包含有日期信息的結合數組。如果沒有給出時間戳則認為是當前本地時間 ``` $t=getdate(); var_dump($t);" ``` ## **cal_days_in_month** (CAL_GREGORIAN,$month,$year); 返回給定月份的最后一天(需要手動開啟擴展,不推薦) ``` cal_days_in_month(CAL_GREGORIAN,12,2020); //推薦 date('t', time()) ```
                  <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>

                              哎呀哎呀视频在线观看