diff options
Diffstat (limited to 'usr.bin/calendar/calendar.h')
-rw-r--r-- | usr.bin/calendar/calendar.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/calendar/calendar.h b/usr.bin/calendar/calendar.h index b6ea8175f27..f329a079a22 100644 --- a/usr.bin/calendar/calendar.h +++ b/usr.bin/calendar/calendar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: calendar.h,v 1.13 2010/04/28 18:20:15 jsg Exp $ */ +/* $OpenBSD: calendar.h,v 1.14 2015/03/15 00:41:28 millert Exp $ */ /* * Copyright (c) 1989, 1993, 1994 @@ -95,6 +95,9 @@ void setnnames(void); * calendar time--e.g. Easter or easter depending * days */ +#define SECSPERDAY (24 * 60 * 60) +#define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0)) + extern int f_dayAfter; /* days after current date */ extern int f_dayBefore; /* days before current date */ extern int f_SetdayAfter; /* calendar invoked with -A */ |