diff --git a/docs/index.html b/docs/index.html index f97a9aa61f..bd0f2783be 100644 --- a/docs/index.html +++ b/docs/index.html @@ -133,13 +133,13 @@
$now = Carbon::now();
-echo $now; // 2024-08-19 07:35:05
+echo $now; // 2024-09-15 20:26:50
echo "\n";
$today = Carbon::today();
-echo $today; // 2024-08-19 00:00:00
+echo $today; // 2024-09-15 00:00:00
echo "\n";
$tomorrow = Carbon::tomorrow('Europe/London');
-echo $tomorrow; // 2024-08-20 00:00:00
+echo $tomorrow; // 2024-09-16 00:00:00
echo "\n";
$yesterday = Carbon::yesterday();
-echo $yesterday; // 2024-08-18 00:00:00
+echo $yesterday; // 2024-09-14 00:00:00
@@ -451,7 +451,7 @@
$date = CarbonImmutable::now();
-echo $date->calendar(); // Today at 7:35 AM
+echo $date->calendar(); // Today at 8:26 PM
echo "\n";
-echo $date->sub('1 day 3 hours')->calendar(); // Yesterday at 4:35 AM
+echo $date->sub('1 day 3 hours')->calendar(); // Yesterday at 5:26 PM
echo "\n";
-echo $date->sub('3 days 10 hours 23 minutes')->calendar(); // Last Thursday at 9:12 PM
+echo $date->sub('3 days 10 hours 23 minutes')->calendar(); // Last Thursday at 10:03 AM
echo "\n";
-echo $date->sub('8 days')->calendar(); // 08/11/2024
+echo $date->sub('8 days')->calendar(); // 09/07/2024
echo "\n";
-echo $date->add('1 day 3 hours')->calendar(); // Tomorrow at 10:35 AM
+echo $date->add('1 day 3 hours')->calendar(); // Tomorrow at 11:26 PM
echo "\n";
-echo $date->add('3 days 10 hours 23 minutes')->calendar(); // Thursday at 5:58 PM
+echo $date->add('3 days 10 hours 23 minutes')->calendar(); // Thursday at 6:49 AM
echo "\n";
-echo $date->add('8 days')->calendar(); // 08/27/2024
+echo $date->add('8 days')->calendar(); // 09/23/2024
echo "\n";
-echo $date->locale('fr')->calendar(); // Aujourd’hui à 07:35
+echo $date->locale('fr')->calendar(); // Aujourd’hui à 20:26
@@ -5588,7 +5588,7 @@ -
echo Carbon::now('America/Vancouver')->diffInSeconds(Carbon::now('Europe/London')); // 2.0E-5
+ echo Carbon::now('America/Vancouver')->diffInSeconds(Carbon::now('Europe/London')); // 9.0E-6
$dtOttawa = Carbon::createMidnightDate(2000, 1, 1, 'America/Toronto');
$dtVancouver = Carbon::createMidnightDate(2000, 1, 1, 'America/Vancouver');
@@ -7048,10 +7048,10 @@ Difference
$date = Carbon::now()->addSeconds(3666);
-echo $date->diffInSeconds(); // -3665.999811
-echo $date->diffInMinutes(); // -61.099994083333
-echo $date->diffInHours(); // -1.0183331869444
-echo $date->diffInDays(); // -0.042430547696759
+echo $date->diffInSeconds(); // -3665.999883
+echo $date->diffInMinutes(); // -61.099996533333
+echo $date->diffInHours(); // -1.0183332527778
+echo $date->diffInDays(); // -0.042430551273148
$date = Carbon::create(2016, 1, 5, 22, 40, 32);
@@ -7706,7 +7706,7 @@ Macro
echo "\n";
echo Carbon::tomorrow()->formatForUser(); // Demain à 02:00
echo "\n";
-echo Carbon::now()->subDays(3)->formatForUser(); // vendredi dernier à 09:35
+echo Carbon::now()->subDays(3)->formatForUser(); // jeudi dernier à 22:26
@@ -7969,10 +7969,10 @@ Macro
echo substr(implode(', ', $dates), 0, 100).'...';
}
-dumpDateList(Carbon::getCurrentWeekDays()); // 2024-08-19 00:00:00, 2024-08-20 00:00:00, 2024-08-21 00:00:00, 2024-08-22 00:00:00, 2024-08-23 00:00...
-dumpDateList(Carbon::getCurrentMonthDays()); // 2024-08-01 00:00:00, 2024-08-02 00:00:00, 2024-08-03 00:00:00, 2024-08-04 00:00:00, 2024-08-05 00:00...
-dumpDateList(Carbon::now()->subMonth()->getCurrentWeekDays()); // 2024-07-15 00:00:00, 2024-07-16 00:00:00, 2024-07-17 00:00:00, 2024-07-18 00:00:00, 2024-07-19 00:00...
-dumpDateList(Carbon::now()->subMonth()->getCurrentMonthDays()); // 2024-07-01 00:00:00, 2024-07-02 00:00:00, 2024-07-03 00:00:00, 2024-07-04 00:00:00, 2024-07-05 00:00...
+dumpDateList(Carbon::getCurrentWeekDays()); // 2024-09-09 00:00:00, 2024-09-10 00:00:00, 2024-09-11 00:00:00, 2024-09-12 00:00:00, 2024-09-13 00:00...
+dumpDateList(Carbon::getCurrentMonthDays()); // 2024-09-01 00:00:00, 2024-09-02 00:00:00, 2024-09-03 00:00:00, 2024-09-04 00:00:00, 2024-09-05 00:00...
+dumpDateList(Carbon::now()->subMonth()->getCurrentWeekDays()); // 2024-08-12 00:00:00, 2024-08-13 00:00:00, 2024-08-14 00:00:00, 2024-08-15 00:00:00, 2024-08-16 00:00...
+dumpDateList(Carbon::now()->subMonth()->getCurrentMonthDays()); // 2024-08-01 00:00:00, 2024-08-02 00:00:00, 2024-08-03 00:00:00, 2024-08-04 00:00:00, 2024-08-05 00:00...
@@ -8951,7 +8951,7 @@