Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 PHPCarbonInterval库,我想知道为什么 31536000 秒是 1y 1m 1d?
CarbonInterval
$yearInSeconds = 31536000; // 60*60*24*365 Carbon\CarbonInterval::seconds($yearInSeconds)->cascade();
结果:
Carbon\CarbonInterval { interval: + 1y 1m 1d, }
有任何想法吗?