9fans archive / 1999 / 01 / 51 /    prev next

From: G. David Butler gdb@dbS...
Subject: [9fans] Some plan9 y2k problems
Date: Thu, 21 Jan 1999 19:05:51 -0600

This brings up another question, why is

xtime.wday = (day + 7340036L) % 7;

and not

xtime.wday = (day + 4) % 7;
if(xtime.wday < 0)
	xtime.wday += 7;