kohana / ohanzee-helpers

Other
56 stars 10 forks source link

Why not cal_days_in_month? #6

Closed Sett closed 9 years ago

Sett commented 10 years ago

Why don't you use "cal_days_in_month" for getting number of days in a month? It is has the same format:

cal_days_in_month(CAL_GREGORIAN, 4, 2010);

shadowhand commented 10 years ago

Cool, did not know of this function!

shadowhand commented 10 years ago

Unfortunately it requires a compile flag, which means that it isn't always available in PHP: http://php.net/manual/calendar.installation.php

Sett commented 10 years ago

Yes, you are wright.