fix carbon 3 diffIn*

This commit is contained in:
xiaomlove
2025-01-19 23:41:50 +08:00
parent 943e960921
commit 9de6fb42a9
12 changed files with 20 additions and 21 deletions
+5 -6
View File
@@ -102,12 +102,11 @@ class Test extends Command
*/
public function handle()
{
$whoami = executeCommand('whoami');
$user = get_current_user();
$uid = getmyuid();
$uid2 = posix_getuid();
$info = posix_getpwuid($uid2);
dd($whoami, $user, $uid, $uid2, $info);
$today = Carbon::today();
$yesterday = Carbon::yesterday();
$tomorrow = Carbon::tomorrow();
$diff = $tomorrow->diffInDays();
dd($today, $tomorrow, $diff);
}
}