Use year modulo 100 for %y.
authorroland <roland>
Tue, 25 Jul 1995 16:08:32 +0000 (16:08 +0000)
committerroland <roland>
Tue, 25 Jul 1995 16:08:32 +0000 (16:08 +0000)
time/strftime.c

index 625508c..c47fc07 100644 (file)
@@ -278,7 +278,7 @@ DEFUN(strftime, (s, maxsize, format, tp),
          break;
 
        case 'y':
          break;
 
        case 'y':
-         fmt(2, (p, "%.2d", tp->tm_year));
+         fmt(2, (p, "%.2d", tp->tm_year % 100));
          break;
 
        case 'Z':
          break;
 
        case 'Z':