回答編集履歴
2
修正
answer
CHANGED
@@ -6,4 +6,4 @@
|
|
6
6
|
|
7
7
|
$result = $a->isPast($b); // Or isFuture()
|
8
8
|
dd($result);
|
9
|
-
```
|
9
|
+
```
|
1
修正
answer
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
```php
|
2
2
|
<?php
|
3
3
|
|
4
|
-
$a = Carbon::make('2022-02-08 16:00:05');
|
4
|
+
$a = Carbon::make('2022-02-08 16:00:05')->setTime(0, 0, 0);
|
5
5
|
$b = Carbon::make('2022-02-08');
|
6
6
|
|
7
|
-
$result = $a->
|
7
|
+
$result = $a->isPast($b); // Or isFuture()
|
8
8
|
dd($result);
|
9
9
|
```
|