开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜