getDifferenceInMinutes() public method

Get the difference in minutes.
public getDifferenceInMinutes ( ExpressiveDate $compare = null ) : string
$compare ExpressiveDate
return string
Example #1
0
 public function testGetDateDifferenceInMinutes()
 {
     $past = new ExpressiveDate('-10 minutes');
     $future = new ExpressiveDate('+1 minute');
     $this->assertEquals(-11, $future->getDifferenceInMinutes($past));
     $this->assertEquals(11, $past->getDifferenceInMinutes($future));
 }