version 1.1.1.1, 2000/01/09 17:00:56 |
version 1.1.1.2, 2000/01/22 14:16:02 |
|
|
|
|
case 'y': /* year number */ |
case 'y': /* year number */ |
s = read_int(s, 2, &tm->tm_year); |
s = read_int(s, 2, &tm->tm_year); |
|
/* In line with the current UNIX98 specification by |
|
* The Open Group and major Unix vendors, |
|
* two-digit years 69-99 refer to the 20th century, and |
|
* values in the range 00-68 refer to the 21st century. |
|
*/ |
|
if (tm->tm_year <= 68) |
|
tm->tm_year += 100; |
date++; |
date++; |
tm->tm_year += 1900; |
tm->tm_year += 1900; |
break; |
break; |