fadfadfafsfasd / cdqpt.github.io

陈德强的博客
https://www.purethought.cn/
0 stars 0 forks source link

计算两天之间相差天数最简单的代码 | ALaDing #205

Open fadfadfafsfasd opened 5 years ago

fadfadfafsfasd commented 5 years ago

https://purethought.cn/2019/10/08/%E7%BC%96%E7%A8%8B/C/%E8%AE%A1%E7%AE%97%E4%B8%A4%E5%A4%A9%E4%B9%8B%E9%97%B4%E7%9B%B8%E5%B7%AE%E5%A4%A9%E6%95%B0%E6%9C%80%E7%AE%80%E5%8D%95%E7%9A%84%E4%BB%A3%E7%A0%81/

//Rata Die day one is 0001-01-01 int calculateDays(uint32_t year, uint32_t month, uint32_t day) { if (month < 3)