Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/at Unix system time starts in 1970 and not in 1969.



details:   https://anonhg.NetBSD.org/src/rev/854b5cb417ca
branches:  trunk
changeset: 480171:854b5cb417ca
user:      tron <tron%NetBSD.org@localhost>
date:      Thu Jan 06 00:34:38 2000 +0000

description:
Unix system time starts in 1970 and not in 1969.

diffstat:

 usr.bin/at/parsetime.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r d1d860ab91b6 -r 854b5cb417ca usr.bin/at/parsetime.c
--- a/usr.bin/at/parsetime.c    Thu Jan 06 00:24:48 2000 +0000
+++ b/usr.bin/at/parsetime.c    Thu Jan 06 00:34:38 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: parsetime.c,v 1.7 1998/06/27 21:15:08 christos Exp $   */
+/*     $NetBSD: parsetime.c,v 1.8 2000/01/06 00:34:38 tron Exp $       */
 
 /* 
  * parsetime.c - parse time for at(1)
@@ -141,7 +141,7 @@
 #if 0
 static char rcsid[] = "$OpenBSD: parsetime.c,v 1.4 1997/03/01 23:40:10 millert Exp $";
 #else
-__RCSID("$NetBSD: parsetime.c,v 1.7 1998/06/27 21:15:08 christos Exp $");
+__RCSID("$NetBSD: parsetime.c,v 1.8 2000/01/06 00:34:38 tron Exp $");
 #endif
 #endif
 
@@ -447,7 +447,7 @@
        }
 
        if (year >= 0) {
-               if (year < 69)
+               if (year < 70)
                        tm->tm_year = year + 2000 - TM_YEAR_BASE;
                else
                        tm->tm_year = year + 1900 - TM_YEAR_BASE;



Home | Main Index | Thread Index | Old Index