blob: 07b830d5d1aaf28b3d9fa0ef461dd9fc43078c26 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
--- util/xferstats.sh.in.orig Sun Jan 23 19:45:49 2000
+++ util/xferstats.sh.in Sun Jan 23 19:45:29 2000
@@ -186,7 +186,9 @@
#
function cvtDateTime(s)
{
- yday = substr(s,7,2)*365 + substr(s,4,2) - 1;
+ y = substr(s,7,2);
+ if ( y < 50) y += 100;
+ yday = y*365 + substr(s,4,2) - 1;
mon = substr(s,0,2) + 0;
for (i = 0; i < mon; i++)
yday += daysInMonth[i];
|