Forum Moderators: coopster

Message Too Old, No Replies

Chinese New Year Calculation

         

neophyte

3:04 am on Feb 20, 2010 (gmt 0)

10+ Year Member



I don't think there is one - I've already browsed the php manual - but am wondering if anyone knows of a function to determine the start and end dates of Chinese New Year (simular to php's function for determining easter sunday).

Chinese new year is based upon a lunar cycle so their not fixed dates.

If PHP doesn't already have a built in function, does anyone know how to calculate these dates?

Neophyte

IanKelley

9:20 am on Feb 20, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You're right, PHP doesn't have a function for that. There should be dozens of scripts out there that will do it though, Google 'php script chinese new year' or similar.