Let's say I have two mongo dates.
$a = $mongoDateA->sec;
$b = $mongoDateB->sec;
So now I have two timestamps to compare, but I need to figure out, if dateB is any later than a day more than dateA.
so if the difference between the two dates is 1 day, I need to perform another tasks, but I have no idea how to get the difference?
How do I tackle this?
Use a
DateTimeInterval