Carbon - An extended DateTime API

Code
<?php

use Carbon\Carbon;

$date1 Carbon::now()->subDays(6);
$date2 Carbon::now();

echo 
$date2->diffInMinutes($date1) . PHP_EOL;
echo 
$date2->diffForHumans($date1) . PHP_EOL;

echo 
Carbon::now()->startOfDay()
    ->
toDateTimeString() . PHP_EOL;
echo 
Carbon::now()->endOfDay()
    ->
toDateTimeString() . PHP_EOL;
Result
8640
6 days after
2018-05-28 00:00:00
2018-05-28 23:59:59
Used Versions
PHP 7.2, Zend 3.0, Symfony 4.0, Laravel 5.6, PHPUnit 6.5, Doctrine 2.8