PHP中的workTime类问题

I'm having a few problems with a PHP class which I didn't write.

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

  2. Honestly, I can't figure out this code. Can someone point me in the right direction? I need to know where what to change or calculate is.

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