📜  时间戳中每月最后一天的碳 - PHP 代码示例

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

代码示例1
// first day of month (2021-01-01 00:00:00)
Carbon::now()->firstOfMonth()->startOfDay()
 
// first day of month in timestamp (1609459200)
Carbon::now()->firstOfMonth()->startOfDay()->timestamp
 
// last day of month (2021-01-31 23:59:59)
Carbon::now()->lastOfMonth()->endOfDay()
 
// last day of month in timestamp (1640995199)
Carbon::now()->lastOfMonth()->endOfDay()->timestamp