|
Home > Archive > Unix Programming > January 2008 > Number of days till pancake day
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Number of days till pancake day
|
|
| Mark Hobley 2008-01-03, 7:23 pm |
| Has anyone stumbled across an algorithm or working C code that can be
used to return the number of days till the next pancake day, or if not,
at least return the date of the next pancake day.
It's based on the lunar calendar, and it is not always the same week in
the month, so I am a little bit lost here.
Mark.
--
Mark Hobley,
393 Quinton Road West,
Quinton, BIRMINGHAM.
B32 1QE.
| |
| Barry Margolin 2008-01-03, 7:23 pm |
| In article <lk7055-gh1.ln1@neptune.markhobley.yi.org>,
markhobley@hotpop.donottypethisbit.com (Mark Hobley) wrote:
> Has anyone stumbled across an algorithm or working C code that can be
> used to return the number of days till the next pancake day, or if not,
> at least return the date of the next pancake day.
>
> It's based on the lunar calendar, and it is not always the same week in
> the month, so I am a little bit lost here.
>
> Mark.
It's always the same number of days before Easter. So calculate the
date of Easter and then subtract that many days. See
http://en.wikipedia.org/wiki/Computus#Algorithms for the algorithm for
calculating Easter's date.
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
| |
| Syren Baran 2008-01-04, 1:27 pm |
| Barry Margolin schrieb:
> It's always the same number of days before Easter. So calculate the
Strange, even though i dont know what pancake day is i would have
expected it to be a couple of days after you get the eggs.
|
|
|
|
|