cast peer finishedat datetime

This commit is contained in:
xiaomlove
2021-05-16 15:03:02 +08:00
parent 6ccf135b6c
commit 3d7ab7a7dc
2 changed files with 4 additions and 3 deletions

View File

@@ -62,9 +62,9 @@ class Test extends Command
// $r = DB::table('users')->where('id', 1)->update(['modcomment' => DB::raw("concat_ws(',', 'ddddd', modcomment)")]);
$yesterday = Carbon::parse('2021-05-16 13:30');
$now = Carbon::now();
$r = $yesterday->diffInSeconds($now);
dd($yesterday, $now, $r);
$now = Carbon::parse(0);
// $r = $yesterday->diffInSeconds($now);
dd($now);
}
}