Documentation Source Text

Check-in [3fed9a6fc9]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Be sure to ParseRfc822Date() has enough precision in its output.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 3fed9a6fc9155ce6925c5da6c2c063a9a3c61b3918c52f8b5542db3503ae38bf
User & Date: drh 2018-02-25 19:24:35
Context
2018-02-27
16:36
Create a change log entry for 3.23.0. check-in: 45bd3cdd39 user: drh tags: trunk
2018-02-25
19:24
Be sure to ParseRfc822Date() has enough precision in its output. check-in: 3fed9a6fc9 user: drh tags: trunk
17:29
Fix some missing error codes from the previous althttpd.c check-in. check-in: 5f2e54c6c1 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to misc/althttpd.c.

538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
          year += mon/12;
          mon %= 12;
        }
        isLeapYr = year%4==0 && (year%100!=0 || (year+300)%400==0);
        yday = priorDays[mon] + mday - 1;
        if( isLeapYr && mon>1 ) yday++;
        nDay = (year-70)*365 + (year-69)/4 - year/100 + (year+300)/400 + yday;
        return ((nDay*24 + hour)*60 + min)*60 + sec;
      }
    }
  }
  return 0;
}

/*







|







538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
          year += mon/12;
          mon %= 12;
        }
        isLeapYr = year%4==0 && (year%100!=0 || (year+300)%400==0);
        yday = priorDays[mon] + mday - 1;
        if( isLeapYr && mon>1 ) yday++;
        nDay = (year-70)*365 + (year-69)/4 - year/100 + (year+300)/400 + yday;
        return ((time_t)(nDay*24 + hour)*60 + min)*60 + sec;
      }
    }
  }
  return 0;
}

/*