Consider:
$a = new CDate_Span(1, 2); $b = new CDate_Span(2, 1);
print $a->toSeconds(); //1 print $b->toSeconds(); //-1
the length of A and B is 1; it's the same duration.
so $a->equals($b); // is true.
but the actual result is: false
Log in to post a comment.