Displaying 1 result from an estimated 1 matches for "isleap".
Did you mean:
isleaf
2007 Mar 21
1
bug and patch: strptime first-of-month error in (possibly unsupported use of) "%j" format (PR#9577)
...orking copy)
@@ -796,7 +796,7 @@
if(tm->tm_yday != NA_INTEGER) {
/* since we have yday, let that take precedence over mon/mday */
int yday = tm->tm_yday, mon = 0;
- while(yday > (tmp = days_in_month[mon] +
+ while(yday >= (tmp = days_in_month[mon] +
((mon==1 && isleap(1900+tm->tm_year))? 1 : 0))) {
yday -= tmp;
mon++;