有什么Carbon方法可以獲取Carbon對象的時間戳,但沒有秒?我需要比較兩個Carbon對象,但我不想考慮秒...if ($carbon1->timestamp > $carbon2->timestamp) { // Do something...}我不喜歡使用像$timestampWithoutSeconds = substr($carbon1->timestamp, 0, 5);
`碳->時間戳`但沒有秒
慕田峪9158850
2021-11-05 15:09:32