Add/update copyright notice in all source code files.
[mmh] / sbr / dtime.c
index 57b61c8..e485dfd 100644 (file)
@@ -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 <h/mh.h>   /* 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);