首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏个人路线

    鸿蒙原生检查某一年是否为闰年三方库

    leap-year 检查某一年是否为闰年 本库由坚果移植,感谢大家对坚果派的支持。 leap_year OpenHarmony ohpm 环境配置等更多内容,请参考如何安装 OpenHarmony ohpm 包 二、使用 import isLeapYear from "nutpi/leap-year " import isLeapYear from "@nutpi/leap-year" @Entry @Component struct Index { @State flag: boolean

    38210编辑于 2024-03-12
  • 来自专栏ek1ng的技术小站

    操作系统内核中的初始化工作

    If it wasn't a leap-year, we have to adjust */ if (tm->tm_mon>1 && ((year+2)%4)) res -= DAY; res

    1K30编辑于 2022-08-10
领券