Hey all,
got a rather simple problem today, I'm sure there is a really simple answer but unfortuantly I can't find it 🙁
Basically what I'm trying to do is I have an invoicing system at work and I'm trying to keep track of the days they are open. I've got stored the time() of when it was first opened and the time() of what it was closed.
Now I try an do a date("d", $Closed-$Opened) an gives me the error (which I did expect) of "Windows does not support dates prior to midnight (00:00:00), January 1, 1970"
Now my question is, is there any commands where I can just subtract the 2 time stamps to get the days inbetween? (seconds, mins, or anything else would do aswell). I'd assume there would be since I just found a command to tell you what day is easter is (PHP has a function for EVERYTHING) but I just couldn't find the right one. Any help or advice anyone has on this matter would be greatly appreicated.
Stevil