I'm having a few problems with a PHP class which I didn't write.
I need to calculate the interval between dates with calendar days (not with workweek(1 day = 8h )). Example: Today(03-02-2017 (13:45:20)) I create a task with deadline 10-02-2017(23:59:59).
1.1 The term days must be 7, not 5, and hours are not important.
I'll leave a gist link instead of code because it's too long.
https://gist.github.com/biboletin/f862b898466dfb9057e8dd9f710db1fd
I examined your workTime class and I think you have everything done. There is a method setDate_Diff()
(called in construct()
), which calculates variable intDays
. IMHO this is what you need.
Additionaly there is a method getDiffInDays()
in your class, which returns you value of intDays...