plan 9 kernel history: overview | file list | diff list

1999/0113/boot/settime.c (diff list | history)

1993/0501/sys/src/9/boot/settime.c:99,1071999/0113/sys/src/9/boot/settime.c:99,108 (short | long | prev | next)
1992/0611    
 *  return the days/month for the given year 
 */ 
static int * 
yrsize(int yr) 
1999/0113    
yrsize(int y) 
1992/0611    
{ 
	if((yr % 4) == 0) 
1999/0113    
 
	if((y%4) == 0 && ((y%100) != 0 || (y%400) == 0)) 
1992/0611    
		return ldmsize; 
	else 
		return dmsize; 


source code copyright © 1990-2005 Lucent Technologies; see license
Plan 9 distribution
comments to russ cox (rsc@swtch.com)