<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之旅 廣告
                > DateTimeZone 表示時區的類。 ``` DateTimeZone { /* 常量*/ const integer AFRICA = 1 ; // 非洲時區 const integer AMERICA = 2 ; // 美國時區 const integer ANTARCTICA = 4 ; // 南極洲時區 const integer ARCTIC = 8 ; // 北極時區 const integer ASIA = 16 ; // 亞洲時區 const integer ATLANTIC = 32 ; // 大西洋時區 const integer AUSTRALIA = 64 ; // 澳大利亞時區 const integer EUROPE = 128 ; // 歐洲時區 const integer INDIAN = 256 ; // 印度時區 const integer PACIFIC = 512 ; // 太平洋時區 const integer UTC = 1024 ; // UTC時區 const integer ALL = 2047 ; // 所有時區 const integer ALL_WITH_BC = 4095 ;// 所有時區,包括向后兼容 const integer PER_COUNTRY = 4096 ; /* 方法 */ public __construct ( string $timezone ) public getLocation ( void ) : array public getName ( void ) : string public getOffset ( DateTimeInterface $datetime ) : int public getTransitions ([ int $timestamp_begin = PHP_INT_MIN [, int $timestamp_end = PHP_INT_MAX ]] ) : array // getTransitions 方法返回時區的所有轉換 public static listAbbreviations ( void ) : array //listAbbreviations 方法返回包含dst、偏移量和時區名稱的關聯數組 public static listIdentifiers ([ int $what = DateTimeZone::ALL [, string $country = NULL ]] ) : array // listIdentifiers 方法返回包含所有定義的時區標識符的數字索引數組 } ``` ``` $date = new DateTime; // DateTime類的獲取時區方法,返回DateTimeZone對象 $time_zone = $date->getTimezone(); dump($time_zone); object(DateTimeZone)#227 (2) { ["timezone_type"] => int(3) ["timezone"] => string(13) "Asia/Shanghai" } // DateTimeZone對象的getLocation方法:返回時區的位置信息 $location = $time_zone->getLocation(); dump($location); array(4) { ["country_code"] => string(2) "CN" ["latitude"] => float(31.23333) ["longitude"] => float(121.46666) ["comments"] => string(12) "Beijing Time" } // DateTimeZone對象的getOffset方法:返回時區的偏移量 $offset = $date->getOffset(); dump($offset); // 實例化DateTimeZone類時,需要時區字符串參數 $date_time_zone = new DateTimeZone('Asia/Shanghai'); ```
                  <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>

                              哎呀哎呀视频在线观看