[UPHPU] building a dynamic calendar

Richard K Miller richardkmiller at gmail.com
Thu Mar 15 00:10:45 MDT 2007


On Mar 14, 2007, at 10:55 PM, Wade Preston Shearer wrote:

> 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.
>

cal_days_in_month()





More information about the UPHPU mailing list