shithub: scc

ref: 041d2d96655de6afaac6b20437df8897b03f6c92
dir: /src/libc/time/_daysyear.c/

View raw version
int _daysmon[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};

int
_daysyear(int year)
{
	if (year%4 != 0)
		return 365;
	if (year%100 == 0 && year%400 != 0)
		return 365;
	return 366;
}