public function Carbon::diffInMinutes in Persian Date for Drupal 8 8.4
Get the difference in minutes
Parameters
\Drupal\persian_date\Library\Carbon\Carbon|null $dt:
bool $abs Get the absolute of the difference:
Return value
int
File
- src/
Library/ Carbon/ Carbon.php, line 2738
Class
- Carbon
- A simple API extension for DateTime
Namespace
Drupal\persian_date\Library\CarbonCode
public function diffInMinutes(Carbon $dt = null, $abs = true) {
return (int) ($this
->diffInSeconds($dt, $abs) / static::SECONDS_PER_MINUTE);
}