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
2021-09-20 00:00:00
2021-09-20 23:59:59
Used Versions
PHP 8.0, Laminas MVC 3.2, Symfony 5.2, Laravel 8.28, PHPUnit 9.5, Doctrine ORM 2.8