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

    <legend id='uP0jJ'><style id='uP0jJ'><dir id='uP0jJ'><q id='uP0jJ'></q></dir></style></legend>

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

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

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

      1. 在 MongoDB 中存儲日期而不考慮時區

        Store date in MongoDB without considering the timezone(在 MongoDB 中存儲日期而不考慮時區)
          <tbody id='cy6kj'></tbody>

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

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

                <tfoot id='cy6kj'></tfoot>

                  本文介紹了在 MongoDB 中存儲日期而不考慮時區的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  在不考慮時區的情況下,在 MongoDB 中存儲日期的最佳方式是什么?

                  Which is the best way to store a date in MongoDB without considering the timezone?

                  我試著用一個例子來解釋這個問題:

                  I try to explain the problem with an example:

                  意大利的Giuseppe在日期December 15, 2014"創建了一個invoce,當系統存儲這個日期時,MongoDB中將存儲2014-12-14T23:00:00.000Z".

                  Giuseppe in Italy created an invoce in date "December 15, 2014", when the system store this date, in MongoDB will be stored "2014-12-14T23:00:00.000Z".

                  John 在英國閱讀了發票并看到 December 14, 2014" 作為發票日期.

                  John in UK read the invoice and see "December 14, 2014" as the invoice date.

                  顯然這個信息是錯誤的,因為 Jhon 也應該看到 "December 15, 2014" 作為發票日期,我該如何解決這個問題?

                  Obviously this information is wrong becouse also Jhon should see "December 15, 2014" as the invoice date, how can I solve this problem?

                  推薦答案

                  不應將整個日期放在 Date 對象中.盡管有這個名字,Date 代表一個日期和一個時間.如果您正在使用的值表示整個日期,而不是該日期的特定時間,那么您應該以另一種格式存儲該值.

                  Whole dates should not be placed in a Date object. Despite the name, Date represents a date and a time. If the value you're working with represents a whole date, rather than a specific time on that date, then you should store the value in another format.

                  選項是:

                  • YYYY-MM-DDYYYYMMDD 格式的字符串
                  • 自某個參考點以來的整數天數.

                  這篇關于在 MongoDB 中存儲日期而不考慮時區的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                  相關文檔推薦

                  Browser waits for ajax call to complete even after abort has been called (jQuery)(即使在調用 abort (jQuery) 之后,瀏覽器也會等待 ajax 調用完成)
                  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屋-程序員軟件開發技術分
                  Is it possible for XHR HEAD requests to not follow redirects (301 302)(XHR HEAD 請求是否有可能不遵循重定向 (301 302))
                  XMLHttpRequest 206 Partial Content(XMLHttpRequest 206 部分內容)
                  Restrictions of XMLHttpRequest#39;s getResponseHeader()?(XMLHttpRequest 的 getResponseHeader() 的限制?)
                  <legend id='bIEiT'><style id='bIEiT'><dir id='bIEiT'><q id='bIEiT'></q></dir></style></legend>
                  1. <small id='bIEiT'></small><noframes id='bIEiT'>

                      <bdo id='bIEiT'></bdo><ul id='bIEiT'></ul>
                        <tbody id='bIEiT'></tbody>

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

                            主站蜘蛛池模板: 黄色网址免费在线观看 | 黄色一级在线播放 | 亚洲一区二区免费 | 国产精品久久久久久久久久免费看 | 国产精品久久久久久中文字 | 欧美一区二区精品 | 欧美日韩黄色一级片 | av先锋资源 | 久久精品一二三影院 | 亚洲综合色 | 欧美福利视频一区 | 国产精品成人一区二区三区 | 欧美一区二区三区四区在线 | 中文字幕影院 | 亚洲www啪成人一区二区麻豆 | 亚洲一页 | 麻豆国产精品777777在线 | 毛片免费看 | 色伊人网| 91麻豆精品一区二区三区 | 中文一区 | 美女一区二区在线观看 | 久久这里只有精品首页 | 久久久久久91 | www.亚洲免费| 亚洲精品视频在线播放 | 亚洲精品一区国产精品 | 日本精品一区二区 | 久久手机在线视频 | 欧美一区二区三区的 | 国产免费一区二区三区 | 无码一区二区三区视频 | 一级毛片免费 | 激情 婷婷 | 亚洲国产专区 | 亚洲精品成人在线 | 黄色成人在线网站 | 欧美成人高清视频 | 成人国产一区二区三区精品麻豆 | 韩国毛片一区二区三区 | 亚洲精品久久久久久久久久久久久 |