📌  相关文章
📜  carbon start of day - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:29.095000             🧑  作者: Mango

代码示例1
// start of day in date (2021-01-01 00:00:00)
Carbon::now()->startOfDay()
 
// start of day in timestamp (1609459200)
Carbon::now()->startOfDay()->timestamp
 
// end of day in date (2021-01-01 23:59:59)
Carbon::now()->endOfDay()
 
// end of day in timestamp (1609545599)
Carbon::now()->endOfDay()->timestamp