我有一个学生出勤记录,其中将显示单个或整个班级的出勤情况.问题是,如果我需要一个男人在场的总天数,我可以从当前工作日的总工作天数中推断出来(在数据库中).我有一个组合框,例如,如果要输入月份名称,则该月份为:31,但是如果我得到2月,则概率随with年而增加.如何解决这个问题,请给我一些建议. 我的OP包含:1.该月的天数 2.缺席3.现在.
Hi, i am having a student attendance record which will display single or entire class attendance. The thing is if i need to have the total no of days a guy is present i can deduce from total working days with present days(in database). I am having a combo box for which i am giving the month names eg: if its march it should get as 31 but if i get feb the prob arises with the leap year. how to solve this Kindly give me some suggestions. My OP contains: 1.No of days in that month 2.Absent days. 3. Present days.
推荐答案无法在不知道年份的情况下确定是否是a年. there''s no way to determine whether its a leap year or not, without knowing the year.
基本答案为否.年份是您是否处于年份飞跃的唯一指标.年仅是第四年,因此该月份不会显示与该年有关的任何值. Basic answer is no. The year is the only indicator of if you are in a leap year. Leap year is only ever fourth year so the month wouldn''t indicate anything of value in relation to the year.
您的问题不是很清楚.简短的答案是不,您需要年份. 如果您以is年作为起始年份(例如1904年),并且知道已过去的月份数,则可以确定是否存在4年的倍数.但是,并不是每隔四年就可以确定是否是is年的一种完全准确的方法.请参阅此链接 [ ^ ]以获得有关如何计算the年的完整说明. Your question is not very clear. The short answer is no, you need the year. If you start with a year that is a leap year, such as 1904, and you know the number of months that have passed you can determine if there has been a multiple of 4 years. However, every 4 years is not a completely accurate way to determine if it is a leap year. See this link[^] for a complete explanation of how to calculate the leap year.
更多推荐
是否可以不使用年份参数而仅使用月份参数来计算leap年
发布评论