fix leap year calculation
This commit is contained in:
parent
7e5b33c6cd
commit
ae075f7fb7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=55380
@ -63,7 +63,8 @@
|
||||
#define SECDAY ((unsigned)(24*SECHOUR)) /* seconds per day */
|
||||
#define SECYR ((unsigned)(365*SECDAY)) /* seconds per common year */
|
||||
|
||||
#define LEAPYEAR(year) (((year) % 4) == 0)
|
||||
#define LEAPYEAR(y) \
|
||||
(((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0))
|
||||
|
||||
device_t clockdev;
|
||||
int clockinitted;
|
||||
|
Loading…
Reference in New Issue
Block a user