diff options
author | Frederic Culot <calcurse@culot.org> | 2010-03-08 08:44:28 +0000 |
---|---|---|
committer | Frederic Culot <calcurse@culot.org> | 2010-03-08 08:44:28 +0000 |
commit | b2321a7567340ff285cfcde5f9b4c7e60be7374d (patch) | |
tree | 877e48dbe6742358cf17f6037e127aa8563237ca /src/calendar.h | |
parent | 2ec8ab17accd8c34c180ccea34b9242f6b171d44 (diff) | |
download | calcurse-b2321a7567340ff285cfcde5f9b4c7e60be7374d.tar.gz calcurse-b2321a7567340ff285cfcde5f9b4c7e60be7374d.zip |
Patch to correct the wrong calculation of recurrent items' dates after a
turn of year (submitted by Lukas Fleischer, thanks!).
Diffstat (limited to 'src/calendar.h')
-rwxr-xr-x | src/calendar.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/calendar.h b/src/calendar.h index 60499a7..e900bcd 100755 --- a/src/calendar.h +++ b/src/calendar.h @@ -1,9 +1,9 @@ -/* $calcurse: calendar.h,v 1.18 2009/10/28 15:15:43 culot Exp $ */ +/* $calcurse: calendar.h,v 1.19 2010/03/08 08:44:44 culot Exp $ */ /* * Calcurse - text-based organizer * - * Copyright (c) 2004-2009 Frederic Culot <frederic@culot.org> + * Copyright (c) 2004-2010 Frederic Culot <frederic@culot.org> * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -60,6 +60,14 @@ #define CALHEIGHT 12 #define CALWIDTH 30 +#define DAYINSEC 86400 +#define HOURINSEC 3600 +#define MININSEC 60 +#define YEARINDAYS 365 +#define YEARINMONTHS 12 +#define WEEKINDAYS 7 +#define TM_YEAR_BASE 1900 + typedef enum { /* days of week */ SUNDAY, |