cf_ct_date_input 和闰年
有人使用 cf_ct_date_input 标签吗?如果是这样,您今年的闰年是否遇到了麻烦?我们的日历只经过 28 号,我不知道如何让它经过 29 号。任何帮助将不胜感激。
anyone using the cf_ct_date_input tag? If so are you having trouble with the leap year this year. Our calendar only goes through the 28th and I'm not sure how to get it to go through the 29th. Any help would be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想说它有问题并且不适合正确的闰年计算。
因此,您可能需要自己修改它或找到开发人员。
这不是那些奇怪的年份之一,它是能被 4 整除的明显例子。
如果一年能被 4 整除但不能被 100 整除,那么它就是闰年。如果一年能被 4 和 100 整除,那么它是除非它也能被 400 整除,否则不是闰年。
I'd say its buggy and doesn't cater for the proper leap year calculation.
Thus you are probably going to need to modify it yourself or find the developer.
This isn't one of those strange years, its a clear case of being divisible by 4
A year will be a leap year if it is divisible by 4 but not by 100. If a year is divisible by 4 and by 100, it is not a leap year unless it is also divisible by 400.