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
精彩评论