X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fdtime.c;h=e485dfd8cf6981a1d5e02a0871acd3171a0ac377;hp=57b61c8824f8573177bd6c32682c94c55154bc8c;hb=389877bae1fe1a9f7259b8979f6a930744d90fab;hpb=da12435096e47ec1d362215141fc8b21f24e5e01 diff --git a/sbr/dtime.c b/sbr/dtime.c index 57b61c8..e485dfd 100644 --- a/sbr/dtime.c +++ b/sbr/dtime.c @@ -3,6 +3,10 @@ * dtime.c -- time/date routines * * $Id$ + * + * This code is Copyright (c) 2002, by the authors of nmh. See the + * COPYRIGHT file in the root directory of the nmh distribution for + * complete copyright information. */ #include /* for snprintf() */ @@ -412,8 +416,11 @@ dmktime (struct tws *tw) year = tw->tw_year; result = 0; - if (year < 100) - year += 1900; + if (year < 1970) + year += 1900; + + if (year < 1970) + year += 100; for (i = 1970; i < year; i++) result += dysize (i);