From bbf14489ae7f88c77b91fa4f052ec64c6ecd671b Mon Sep 17 00:00:00 2001 From: kylekatarnls <5966783+kylekatarnls@users.noreply.github.com> Date: Tue, 15 Oct 2024 00:19:49 +0000 Subject: [PATCH] Update documentation --- docs/index.html | 84 ++++++++++++++++++++++++------------------------- index.html | 19 ++++++----- 2 files changed, 53 insertions(+), 50 deletions(-) diff --git a/docs/index.html b/docs/index.html index 9f65515e1..fae119683 100644 --- a/docs/index.html +++ b/docs/index.html @@ -133,13 +133,13 @@
$now = Carbon::now();
-echo $now; // 2024-10-10 18:20:43
+echo $now; // 2024-10-15 00:19:48
echo "\n";
$today = Carbon::today();
-echo $today; // 2024-10-10 00:00:00
+echo $today; // 2024-10-15 00:00:00
echo "\n";
$tomorrow = Carbon::tomorrow('Europe/London');
-echo $tomorrow; // 2024-10-11 00:00:00
+echo $tomorrow; // 2024-10-16 00:00:00
echo "\n";
$yesterday = Carbon::yesterday();
-echo $yesterday; // 2024-10-09 00:00:00
+echo $yesterday; // 2024-10-14 00:00:00
@@ -451,7 +451,7 @@
$date = CarbonImmutable::now();
-echo $date->calendar(); // Today at 6:20 PM
+echo $date->calendar(); // Today at 12:19 AM
echo "\n";
-echo $date->sub('1 day 3 hours')->calendar(); // Yesterday at 3:20 PM
+echo $date->sub('1 day 3 hours')->calendar(); // Last Sunday at 9:19 PM
echo "\n";
-echo $date->sub('3 days 10 hours 23 minutes')->calendar(); // Last Monday at 7:57 AM
+echo $date->sub('3 days 10 hours 23 minutes')->calendar(); // Last Friday at 1:56 PM
echo "\n";
-echo $date->sub('8 days')->calendar(); // 10/02/2024
+echo $date->sub('8 days')->calendar(); // 10/07/2024
echo "\n";
-echo $date->add('1 day 3 hours')->calendar(); // Tomorrow at 9:20 PM
+echo $date->add('1 day 3 hours')->calendar(); // Tomorrow at 3:19 AM
echo "\n";
-echo $date->add('3 days 10 hours 23 minutes')->calendar(); // Monday at 4:43 AM
+echo $date->add('3 days 10 hours 23 minutes')->calendar(); // Friday at 10:42 AM
echo "\n";
-echo $date->add('8 days')->calendar(); // 10/18/2024
+echo $date->add('8 days')->calendar(); // 10/23/2024
echo "\n";
-echo $date->locale('fr')->calendar(); // Aujourd’hui à 18:20
+echo $date->locale('fr')->calendar(); // Aujourd’hui à 00:19
@@ -5588,7 +5588,7 @@ -
echo Carbon::now('America/Vancouver')->diffInSeconds(Carbon::now('Europe/London')); // 1.1E-5
+ echo Carbon::now('America/Vancouver')->diffInSeconds(Carbon::now('Europe/London')); // 5.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.999871
-echo $date->diffInMinutes(); // -61.099996166667
-echo $date->diffInHours(); // -1.0183332411111
-echo $date->diffInDays(); // -0.042430550706019
+echo $date->diffInSeconds(); // -3665.999952
+echo $date->diffInMinutes(); // -61.099998483333
+echo $date->diffInHours(); // -1.0183332975
+echo $date->diffInDays(); // -0.042430553645833
$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(); // lundi dernier à 20:20
+echo Carbon::now()->subDays(3)->formatForUser(); // samedi dernier à 02:19
@@ -7969,7 +7969,7 @@ Macro
echo substr(implode(', ', $dates), 0, 100).'...';
}
-dumpDateList(Carbon::getCurrentWeekDays()); // 2024-10-07 00:00:00, 2024-10-08 00:00:00, 2024-10-09 00:00:00, 2024-10-10 00:00:00, 2024-10-11 00:00...
+dumpDateList(Carbon::getCurrentWeekDays()); // 2024-10-14 00:00:00, 2024-10-15 00:00:00, 2024-10-16 00:00:00, 2024-10-17 00:00:00, 2024-10-18 00:00...
dumpDateList(Carbon::getCurrentMonthDays()); // 2024-10-01 00:00:00, 2024-10-02 00:00:00, 2024-10-03 00:00:00, 2024-10-04 00:00:00, 2024-10-05 00:00...
dumpDateList(Carbon::now()->subMonth()->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::now()->subMonth()->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...
@@ -8951,7 +8951,7 @@ CarbonPeriod
$days[] = $date->format('Y-m-d');
}
-echo implode(', ', $days); // 2024-10-10, 2024-10-11, 2024-10-12
+echo implode(', ', $days); // 2024-10-15, 2024-10-16, 2024-10-17
diff --git a/index.html b/index.html
index 07b8a6c00..f43755f63 100644
--- a/index.html
+++ b/index.html
@@ -216,10 +216,11 @@