[UPHPU] building a dynamic calendar

Wade Preston Shearer lists at wadeshearer.com
Wed Mar 14 22:55:21 MDT 2007


I am building a calendar inside of a web application. Is there a way  
to determine how many days are in each month (February would be the  
only one that varies) and which day of the week it begins on without  
hard coding an array? Doesn't is vary from year? Is it something that  
is decided on by some committee or is it scientific (ie: could be  
determined with a formula)? My understanding is that it's fairly  
consistent from year to year but every once in a while it has to be  
tweaked with things such as leap years to make up for inconsistencies  
in the earth's rotation.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2425 bytes
Desc: not available
Url : http://uphpu.org/pipermail/uphpu/attachments/20070314/3f32028d/smime.bin


More information about the UPHPU mailing list