开发者

which is the best and simple algorithm for calendar? [closed]

开发者 https://www.devze.com 2023-04-04 18:30 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago. 开发者_Python百科

I am planning to display an android calendar in my application. I want to select a date to use in my application. I need to know whether there is an algorithm for a calendar.

I must not use any open source application.


Generating an arbitrary Gregorian calendar pretty much amounts to determining the day of the week of the starting day and, for Februaries, determining whether the year is a leap year.


The best and most famous date algorithm is Conway's Doomsday Rule, http://en.wikipedia.org/wiki/Doomsday_rule

0

精彩评论

暂无评论...
验证码 换一张
取 消