Thanks for uploading this function.

Recommend this page to a friend!

      Work Days  >  All threads  >  Thanks for uploading this function.  >  (Un) Subscribe thread alerts  
Subject:Thanks for uploading this function.
Summary:Package rating comment
Messages:2
Author:chip
Date:2009-03-05 09:04:44
Update:2009-10-14 19:22:24
 

chip rated this package as follows:

Utility: Good
Consistency: Good
Examples: Good

  1. Thanks for uploading this function.   Reply   Report abuse  
chip - 2009-03-05 09:04:44
Thanks for uploading this function.. anyway.. there is some mistakes in calculating, very very little mistake.. you shuold add 1 to get a correct value.

the line is->
return $nbr_work_days;

to
return $nbr_work_days + 1;

  2. Re: Thanks for uploading this function.   Reply   Report abuse  
Peter Zitrone - 2009-10-14 19:22:24 - In reply to message 1 from chip
Hi,

the script is great, but I have a problem:

2009-10-16 to 2009-10-23 it says 8 days in total, 6 week days and 6 working days.
2009-10-16 to 2009-10-26 it says 11 days in total (that's right), but still 6 week days and 6 working days though it should now be 7 week.

I didn't add any holidays in this period, but in the second example 1 day is missing. Changing to

return $nbr_work_days + 1;

doesn't work for me because as seen in the first example it's not always 1 day missing, just sometimes. Any ideas how to fix this?

 

For more information send a message to info at phpclasses dot org.