Date: Thu, 09 Jan 1997 07:46:48 +1100 From: Giles Lean <giles@nemeton.com.au> To: Darren Reed <avalon@coombs.anu.edu.au> Cc: hackers@freebsd.org Subject: Re: Year 2000 time change(Format support) Message-ID: <199701082046.HAA26798@nemeton.com.au> In-Reply-To: <199701081022.CAA25400@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 8 Jan 1997 21:22:29 +1100 (EDT) Darren Reed wrote: > Are there any cases where software calculates a year that is in the range > 0-99 and then adds that to 1900 ? Probably. I would worry too about software (like query-pr --sql) which takes perfectly good four digit dates and strips the leading two digits. While not in itself a problem, it makes using the output harder, particularly if you want to sort it. > Or any that displays 19%d ? Looks like it; see below. (I haven't really followed these up.) I would't worry too much about sccs2rcs.csh -- it isn't safe to use anyway. That RCS doesn't look safe is concerning -- we probably need to fix this. ./src/contrib/cvs/contrib/sccs2rcs.csh: set date = `sccs prs -r$rev $file | grep "^D " | awk '{printf("19%s %s", $3, $4); exit}'` ./src/gnu/usr.bin/rcs/lib/rcstime.c: "19%.*s/%.2s/%.2s %.2s:%.2s:%s" ./src/usr.bin/yacc/test/ftp.tab.c: "19%02d%02d%02d%02d%02d%02d", ./src/usr.bin/yacc/test/ftp.y: "19%02d%02d%02d%02d%02d%02d", ./src/usr.sbin/xntpd/parse/clk_trimtsip.c: printf("sv6+ software: %d.%d (19%d/%d/%d)\n", Giles
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199701082046.HAA26798>