leap.go

1
2
3
4
5
6
7
package leap

const testVersion = 3

func IsLeapYear(year int) bool {
	return year%400 == 0 || (year%4 == 0 && year%100 != 0)
}

Comments


You're not logged in right now. Please login via GitHub to comment