久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  1. <tfoot id='6Bk72'></tfoot>
    • <bdo id='6Bk72'></bdo><ul id='6Bk72'></ul>

    <small id='6Bk72'></small><noframes id='6Bk72'>

    1. <i id='6Bk72'><tr id='6Bk72'><dt id='6Bk72'><q id='6Bk72'><span id='6Bk72'><b id='6Bk72'><form id='6Bk72'><ins id='6Bk72'></ins><ul id='6Bk72'></ul><sub id='6Bk72'></sub></form><legend id='6Bk72'></legend><bdo id='6Bk72'><pre id='6Bk72'><center id='6Bk72'></center></pre></bdo></b><th id='6Bk72'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='6Bk72'><tfoot id='6Bk72'></tfoot><dl id='6Bk72'><fieldset id='6Bk72'></fieldset></dl></div>
      <legend id='6Bk72'><style id='6Bk72'><dir id='6Bk72'><q id='6Bk72'></q></dir></style></legend>

      顯示用戶本地區(qū)域縮寫

      Display users local zone abbreviation(顯示用戶本地區(qū)域縮寫)
        <bdo id='tQf5f'></bdo><ul id='tQf5f'></ul>
        <legend id='tQf5f'><style id='tQf5f'><dir id='tQf5f'><q id='tQf5f'></q></dir></style></legend>

          <tbody id='tQf5f'></tbody>

            <small id='tQf5f'></small><noframes id='tQf5f'>

          1. <tfoot id='tQf5f'></tfoot>
              <i id='tQf5f'><tr id='tQf5f'><dt id='tQf5f'><q id='tQf5f'><span id='tQf5f'><b id='tQf5f'><form id='tQf5f'><ins id='tQf5f'></ins><ul id='tQf5f'></ul><sub id='tQf5f'></sub></form><legend id='tQf5f'></legend><bdo id='tQf5f'><pre id='tQf5f'><center id='tQf5f'></center></pre></bdo></b><th id='tQf5f'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='tQf5f'><tfoot id='tQf5f'></tfoot><dl id='tQf5f'><fieldset id='tQf5f'></fieldset></dl></div>

              1. 本文介紹了顯示用戶本地區(qū)域縮寫的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                問題描述

                我試圖在格式中使用 zzz 來在字符串末尾顯示時區(qū),但發(fā)現(xiàn)它已被棄用.ZZZ 可以顯示 -0700,但我希望它顯示 PDT.

                I was trying to use z or zz in format to display the timezone at the end of the string and found that it's deprecated. Z and ZZ work to display -0700, but instead I want it to show PDT.

                我得到了 moment-timezone 和數(shù)據(jù)文件,但我不知道如何使用它來確定客戶端的本地時區(qū)并顯示如下內(nèi)容:

                I got moment-timezone and the data file, but I can't figure out how to use it to determine the client's local time zone and display something like:

                2014-05-30T22:56:23.967 太平洋時間

                2014-05-30T22:56:23.967 PDT

                代替:

                2014-05-30T22:56:23.967

                2014-05-30T22:56:23.967

                是否可以使用 moment-timezone 來確定 EST、CST、MST、PST 等?

                Is it possible to use moment-timezone to determine EST, CST, MST, PST, etc?

                推薦答案

                從 moment-timezone 0.1.0 開始,您可以使用 格式化添加獲取特定時區(qū)的縮寫:

                As of moment-timezone 0.1.0, you can use the formatting additions to get the abbreviation of a specific time zone:

                moment().tz("America/Los_Angeles").format('z');  // PST or PDT
                

                從 0.5.0 版開始,您現(xiàn)在可以猜測用戶的本地時區(qū),當與上述技術(shù)結(jié)合使用時,您可以執(zhí)行以下操作:

                As of version 0.5.0, you can now guess the user's local time zone, which when combined with the above technique, allows you to do the following:

                moment().tz(moment.tz.guess()).format('z');
                

                假設(shè)猜測正確,它將顯示相關(guān)的縮寫.

                Assuming the guess was correct, it will display the associated abbreviation.

                這篇關(guān)于顯示用戶本地區(qū)域縮寫的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

                相關(guān)文檔推薦

                Browser waits for ajax call to complete even after abort has been called (jQuery)(即使在調(diào)用 abort (jQuery) 之后,瀏覽器也會等待 ajax 調(diào)用完成)
                JavaScript innerHTML is not working for IE?(JavaScript innerHTML 不適用于 IE?)
                XMLHttpRequest cannot load, No #39;Access-Control-Allow-Origin#39; header is present on the requested resource(XMLHttpRequest 無法加載,請求的資源上不存在“Access-Control-Allow-Origin標頭) - IT屋-程序員軟件開發(fā)技術(shù)分
                Is it possible for XHR HEAD requests to not follow redirects (301 302)(XHR HEAD 請求是否有可能不遵循重定向 (301 302))
                XMLHttpRequest 206 Partial Content(XMLHttpRequest 206 部分內(nèi)容)
                Restrictions of XMLHttpRequest#39;s getResponseHeader()?(XMLHttpRequest 的 getResponseHeader() 的限制?)

                • <small id='Rn0JZ'></small><noframes id='Rn0JZ'>

                    <tbody id='Rn0JZ'></tbody>

                        <bdo id='Rn0JZ'></bdo><ul id='Rn0JZ'></ul>
                      • <tfoot id='Rn0JZ'></tfoot>
                      • <legend id='Rn0JZ'><style id='Rn0JZ'><dir id='Rn0JZ'><q id='Rn0JZ'></q></dir></style></legend>
                        <i id='Rn0JZ'><tr id='Rn0JZ'><dt id='Rn0JZ'><q id='Rn0JZ'><span id='Rn0JZ'><b id='Rn0JZ'><form id='Rn0JZ'><ins id='Rn0JZ'></ins><ul id='Rn0JZ'></ul><sub id='Rn0JZ'></sub></form><legend id='Rn0JZ'></legend><bdo id='Rn0JZ'><pre id='Rn0JZ'><center id='Rn0JZ'></center></pre></bdo></b><th id='Rn0JZ'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Rn0JZ'><tfoot id='Rn0JZ'></tfoot><dl id='Rn0JZ'><fieldset id='Rn0JZ'></fieldset></dl></div>
                        1. 主站蜘蛛池模板: 色综合久久天天综合网 | 亚洲成人一区 | 亚洲一区 中文字幕 | 中文字幕在线一 | 欧美中文在线 | 在线观看免费av网 | 亚洲欧美日韩精品久久亚洲区 | 国产精品一区二区视频 | 精品久久久久国产免费第一页 | 99亚洲精品 | 奇米四色在线观看 | 久草免费在线视频 | 成人二区 | 黄免费观看视频 | 天天看片天天干 | 香蕉久久久 | www.99热.com | 午夜视频在线观看一区二区 | 搞黄网站在线观看 | 亚洲高清视频一区二区 | 日韩第一区 | 少妇一级淫片免费放播放 | 狠狠草视频 | www日韩高清 | 毛片一区二区三区 | 国产精品一区二区三区在线 | 日本天堂视频 | 国产最新网址 | 亚洲欧美日韩电影 | 久久精品免费 | 色呦呦在线 | 日韩久久在线 | 成av在线 | 一级片子 | 99pao成人国产永久免费视频 | 新91视频网 | 欧美精品福利视频 | 亚洲一区二区久久 | 99视频入口 | 免费国产视频在线观看 | 久久久蜜臀国产一区二区 |