Introduce macro DAY
DAY(t) is midnight (the day) of time_t t. Signed-off-by: Lars Henriksen <LarsHenriksen@get2net.dk> Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
This commit is contained in:
committed by
Lukas Fleischer
parent
0af69778b5
commit
3599766cee
@@ -145,6 +145,7 @@
|
||||
#define DAYLEN(date) (NEXTDAY(date) - (date))
|
||||
#define ENDOFDAY(date) (NEXTDAY(date) - 1)
|
||||
#define HOURINSEC (HOURINMIN * MININSEC)
|
||||
#define DAY(date) (update_time_in_date(date, 0, 0))
|
||||
|
||||
/* Calendar window. */
|
||||
#define CALHEIGHT 8
|
||||
|
||||
Reference in New Issue
Block a user