What is difference between MonthGenitiveNames and MonthNames? Why there is blank as month?

房东的猫 提交于 2021-02-07 14:23:25

问题


I'm confused about MonthGenitiveNames and MonthNames. There are month names as values of both, so what is the difference between MonthGenitiveNames and MonthNames.

Also why is there "blank" for a month? If you look at values of both, there are blank values. What is the reason for the blank in Month names?


回答1:


Genitive names exist because some languages use a different case of nouns to express dates (genitive instead of nominative).

E.g. in Polish nominative for January is "styczeń" but to express a date 2 January you need to use genitive "2 stycznia".




回答2:


Michael Kaplan has written a bunch about genetive (see http://www.siao2.com/2010/09/09/10059644.aspx and http://www.siao2.com/2012/01/05/10253370.aspx) so I won't rehash that. In short MonthNames are used in contexts where there is no day and GenitiveMonthNames are used in contexts where there is a day. The actual case may or may not be Genitive (it is so named because the first cases where this was important to distinguish did have a genitive case distinction).

In addition to being used for the Gregorian calendar, the MonthNames and GenitiveMonthNames properties are used for calendars other than Gregorian. When such a calendar system has 13 months, there will not be a blank for the 13th month. It will always be blank for Gregorian since there is no 13th month in the Gregorian system.




回答3:


Link : http://msdn.microsoft.com/en-us/library/system.globalization.datetimeformatinfo.monthgenitivenames.aspx:

For example, a date in the Russian (Russia), "ru-RU", culture, consists of the day number and the genitive month name.



来源:https://stackoverflow.com/questions/19675155/what-is-difference-between-monthgenitivenames-and-monthnames-why-there-is-blank

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!