Advertisement
Guest User

Untitled

a guest
Jul 28th, 2015
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. function cal_hours_in_month($year, $month) {
  2. $first = mktime(0, 0, 0, $month, 1, $year);
  3. $last = mktime(23, 59, 00, $month+1, 0, $year);
  4.  
  5. return ($last - $first) / 3600;
  6. }
  7.  
  8. function cal_hours_in_month($calendar,$month,$year ) {
  9. return cal_days_in_month($calendar ,$month ,$year) * 24;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement