Hello, I have the nameday module (http://drupal.org/project/nameday) and I get a feature request for the Greek namedays. How I see it is based on the Easter, what is not an easy thing to count. Well, I want to find some algorithm for Easter, and similar days, what is can be stored somehow. Maybe it should be a hook or some other think what can be stored in database. Thanks -- Ámon Tamás Sitefejlesztő és programozó
http://php.net/manual/en/function.easter-date.php On 11/30/2010 11:14 AM, Ámon Tamás wrote:
I have the nameday module (http://drupal.org/project/nameday) and I get a feature request for the Greek namedays. How I see it is based on the Easter, what is not an easy thing to count.
Well, I want to find some algorithm for Easter, and similar days, what is can be stored somehow. Maybe it should be a hook or some other think what can be stored in database.
-- Jennifer Hodgdon * Poplar ProductivityWare www.poplarware.com Drupal web sites and custom Drupal modules
Does this help? http://php.net/manual/en/function.easter-days.php On Tue, Nov 30, 2010 at 12:14 PM, Ámon Tamás <amont@5net.hu> wrote:
Hello,
I have the nameday module (http://drupal.org/project/nameday) and I get a feature request for the Greek namedays. How I see it is based on the Easter, what is not an easy thing to count.
Well, I want to find some algorithm for Easter, and similar days, what is can be stored somehow. Maybe it should be a hook or some other think what can be stored in database.
Thanks
-- Ámon Tamás Sitefejlesztő és programozó
The Calendar PHP module is not enabled by default in a stock PHP, so I don't know that you can rely on it (unfortunately). It does have some cool stuff in it, though. --Larry Garfield On 11/30/10 1:22 PM, Carl Wiedemann wrote:
Does this help? http://php.net/manual/en/function.easter-days.php
On Tue, Nov 30, 2010 at 12:14 PM, Ámon Tamás <amont@5net.hu <mailto:amont@5net.hu>> wrote:
Hello,
I have the nameday module (http://drupal.org/project/nameday) and I get a feature request for the Greek namedays. How I see it is based on the Easter, what is not an easy thing to count.
Well, I want to find some algorithm for Easter, and similar days, what is can be stored somehow. Maybe it should be a hook or some other think what can be stored in database.
Thanks
-- Ámon Tamás Sitefejlesztő és programozó
Here's how to calculate it in PHP: http://abledesign.com/programs/holiday_code.php Jamie Holly http://www.intoxination.net http://www.hollyit.net On 11/30/2010 2:26 PM, larry@garfieldtech.com wrote:
The Calendar PHP module is not enabled by default in a stock PHP, so I don't know that you can rely on it (unfortunately). It does have some cool stuff in it, though.
--Larry Garfield
On 11/30/10 1:22 PM, Carl Wiedemann wrote:
Does this help? http://php.net/manual/en/function.easter-days.php
On Tue, Nov 30, 2010 at 12:14 PM, Ámon Tamás<amont@5net.hu <mailto:amont@5net.hu>> wrote:
Hello,
I have the nameday module (http://drupal.org/project/nameday) and I get a feature request for the Greek namedays. How I see it is based on the Easter, what is not an easy thing to count.
Well, I want to find some algorithm for Easter, and similar days, what is can be stored somehow. Maybe it should be a hook or some other think what can be stored in database.
Thanks
-- Ámon Tamás Sitefejlesztő és programozó
You can google it, but I believe this is one of those things that cannot be reduced to an equation or algorithm. It's something like the first Sunday after the first full moon after the spring equinox. On 11/30/2010 02:14 PM, Ámon Tamás wrote:
Hello,
I have the nameday module ( http://drupal.org/project/nameday) and I get a feature request for the Greek namedays. How I see it is based on the Easter, what is not an easy thing to count.
Well, I want to find some algorithm for Easter, and similar days, what is can be stored somehow. Maybe it should be a hook or some other think what can be stored in database.
Thanks
-- Ámon Tamás Sitefejlesztő és programozó
There's no need for a hook here at all. You can either code in the algorithm for defining when Easter is (which sounds like it is in fact rather complicated) or just pre-store know pre-calculated dates for it for the next decade or so. (10 records, one per year; totally easy.) Both options are described here, including the different mechanisms for defining when Easter is in different calendars: http://en.wikipedia.org/wiki/Easter#Date_of_Easter --Larry Garfield On 11/30/10 1:14 PM, Ámon Tamás wrote:
Hello,
I have the nameday module (http://drupal.org/project/nameday) and I get a feature request for the Greek namedays. How I see it is based on the Easter, what is not an easy thing to count.
Well, I want to find some algorithm for Easter, and similar days, what is can be stored somehow. Maybe it should be a hook or some other think what can be stored in database.
Thanks
-- Ámon Tamás Sitefejlesztő és programozó
participants (6)
-
Carl Wiedemann -
Jamie Holly -
jeff@ayendesigns.com -
Jennifer Hodgdon -
larry@garfieldtech.com -
Ámon Tamás