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

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

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

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

      1. 回歷和公歷 DateTime 構造函數

        Hijri and Gregorian DateTime constructor (回歷和公歷 DateTime 構造函數)
      2. <small id='SZ5ed'></small><noframes id='SZ5ed'>

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

                <tfoot id='SZ5ed'></tfoot>
                  <bdo id='SZ5ed'></bdo><ul id='SZ5ed'></ul>
                    <tbody id='SZ5ed'></tbody>
                  本文介紹了回歷和公歷 DateTime 構造函數的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  傳遞給 DateTime 類型構造函數的 Calendar 對象的正確行為是什么?

                  what is the correct behavior for the Calendar objected passed to the constructor of DateTime type?

                  我有如下示例的年、月和日組件:

                  I have the components year, month and day as the below example:

                  day = 1
                  month = 5 
                  year = 1433 (which is the current Hijri year)
                  

                  當使用下面的代碼創建一個日期時間對象時,結果是一個有效的格雷格日期

                  when creating a datetime object using the below code the result is a valid Greg Date

                  HijriCalendar hijri = new HijriCalendar();
                  //Get the First Day in the Month
                  DateTime firstDayInMonth = new DateTime(1433, month, 1, hijri);
                  

                  使用下面的代碼會生成一個有效的回歷日期:

                  while using the below code generates a valid Hijri date:

                  GregorianCalendar greg = new GregorianCalendar();
                  //Get the First Day in the Month
                  DateTime firstDayInMonth = new DateTime(1433, month, 1, greg);
                  

                  這是正確的結果嗎?

                  推薦答案

                  你的第一個例子是正確的.DateTime 不會采用 Hijri 格式,它只是您給它的標準化等價物.如何獲取 Hirji 日期請參見以下代碼:

                  Your first example is correct. The DateTime will not be in the Hijri format, it will just be the standardised equivalent of what you gave it. See the following code for how to get the Hirji date:

                  HijriCalendar hijri = new HijriCalendar();
                  DateTime firstDayInMonth = new DateTime(1433, 10, 11, hijri);
                  Console.WriteLine(hijri.GetEra(firstDayInMonth)); // 1
                  Console.WriteLine(hijri.GetYear(firstDayInMonth)); // 1433
                  Console.WriteLine(hijri.GetMonth(firstDayInMonth)); // 10
                  Console.WriteLine(hijri.GetDayOfMonth(firstDayInMonth)); // 11
                  

                  您的第二個代碼塊只是將公歷日期設置為1/1/1433",因此當您檢查它時,您并沒有得到 hirji 日期,而只是得到了您在 15 世紀給出的日期.

                  Your second block of code was just setting the gregorian date "1/1/1433" so when you were inspecting it you weren't getting a hirji date, you were just getting the date you gave it in the 15th century.

                  查看 http://msdn.microsoft.com/en-us/library/system.globalization.hijricalendar.aspx 并查看其中的方法應該可以讓您更好地了解應該在日歷對象上做什么以及在 DateTime 對象上應該發生什么.

                  Looking at http://msdn.microsoft.com/en-us/library/system.globalization.hijricalendar.aspx and seeing the methods there should give you a better idea of what you should be doing on the calendar object and what should happen on the DateTime object.

                  這篇關于回歷和公歷 DateTime 構造函數的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                  相關文檔推薦

                  Ignore whitespace while reading XML(讀取 XML 時忽略空格)
                  XML to LINQ with Checking Null Elements(帶有檢查空元素的 XML 到 LINQ)
                  Reading XML with unclosed tags in C#(在 C# 中讀取帶有未閉合標簽的 XML)
                  Parsing tables, cells with Html agility in C#(在 C# 中使用 Html 敏捷性解析表格、單元格)
                  delete element from xml using LINQ(使用 LINQ 從 xml 中刪除元素)
                  Parse malformed XML(解析格式錯誤的 XML)
                  • <legend id='Jac89'><style id='Jac89'><dir id='Jac89'><q id='Jac89'></q></dir></style></legend>

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

                      <tbody id='Jac89'></tbody>
                    1. <tfoot id='Jac89'></tfoot>

                          • <bdo id='Jac89'></bdo><ul id='Jac89'></ul>
                            <i id='Jac89'><tr id='Jac89'><dt id='Jac89'><q id='Jac89'><span id='Jac89'><b id='Jac89'><form id='Jac89'><ins id='Jac89'></ins><ul id='Jac89'></ul><sub id='Jac89'></sub></form><legend id='Jac89'></legend><bdo id='Jac89'><pre id='Jac89'><center id='Jac89'></center></pre></bdo></b><th id='Jac89'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Jac89'><tfoot id='Jac89'></tfoot><dl id='Jac89'><fieldset id='Jac89'></fieldset></dl></div>
                          • 主站蜘蛛池模板: 伊人二区 | 日韩欧美在线视频观看 | 搞黄网站在线观看 | 国产做爰 | 亚洲激情综合网 | 久久久国产精品视频 | 日韩一二三区视频 | 一级片网站视频 | 久久综合香蕉 | 国产精品夜色一区二区三区 | 亚洲狠狠| 资源首页二三区 | 久草网站 | www久久久| 国产精品亚洲一区二区三区在线 | 久久久久久久久久久久91 | 国产精品高潮呻吟久久 | 久草新在线 | 欧美中文一区 | www一级片| 亚洲国产精品视频一区 | 国产精品视频专区 | 亚洲精品福利在线 | 亚洲欧洲视频 | 国产精品视频久久久 | 综合精品| 中文字幕av网 | 在线观看中文字幕 | 欧美v在线观看 | 国产探花 | 欧美性猛交一区二区三区精品 | 久久国产视频播放 | 欧美日韩一区二区电影 | 一本色道久久综合亚洲精品高清 | 99精品国产在热久久 | 成人欧美在线 | 久久久久国产精品一区 | 国内自拍偷拍 | 免费观看毛片 | 国产精品欧美精品日韩精品 | 日韩精品免费一区 |