=================================================================== RCS file: /home/cvs/OpenXM_contrib/gnuplot/Attic/time.c,v retrieving revision 1.1.1.1 retrieving revision 1.1.1.2 diff -u -p -r1.1.1.1 -r1.1.1.2 --- OpenXM_contrib/gnuplot/Attic/time.c 2000/01/09 17:00:56 1.1.1.1 +++ OpenXM_contrib/gnuplot/Attic/time.c 2000/01/22 14:16:02 1.1.1.2 @@ -1,5 +1,5 @@ #ifndef lint -static char *RCSid = "$Id: time.c,v 1.1.1.1 2000/01/09 17:00:56 maekawa Exp $"; +static char *RCSid = "$Id: time.c,v 1.1.1.2 2000/01/22 14:16:02 maekawa Exp $"; #endif /* GNUPLOT - time.c */ @@ -226,6 +226,13 @@ struct tm *tm; case 'y': /* year number */ 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++; tm->tm_year += 1900; break;