summaryrefslogtreecommitdiff
path: root/src/calcurse.h
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@calcurse.org>2016-02-25 21:31:16 +0100
committerLukas Fleischer <lfleischer@calcurse.org>2016-02-26 09:14:40 +0100
commitf5d8b5e021a62bf3e36e18aa9aebee331fece8dd (patch)
tree959b101037e40ee4b7f5fa6392fceb416b666e42 /src/calcurse.h
parentc34f9aba29b965bf1da7e16da91ebf94ae123e89 (diff)
downloadcalcurse-f5d8b5e021a62bf3e36e18aa9aebee331fece8dd.zip
Support durations in recurrence ending dates
When spending the end date of recurring items, allow date duration specifiers such as "+5d" or "+3w2d". Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'src/calcurse.h')
-rw-r--r--src/calcurse.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/calcurse.h b/src/calcurse.h
index bc3bf11..d337145 100644
--- a/src/calcurse.h
+++ b/src/calcurse.h
@@ -1113,6 +1113,7 @@ time_t date2sec(struct date, unsigned, unsigned);
time_t utcdate2sec(struct date, unsigned, unsigned);
char *date_sec2date_str(long, const char *);
void date_sec2date_fmt(long, const char *, char *);
+int date_change(struct tm *, int, int);
long date_sec_change(long, int, int);
long update_time_in_date(long, unsigned, unsigned);
time_t get_sec_date(struct date);
@@ -1131,6 +1132,7 @@ int parse_date(const char *, enum datefmt, int *, int *, int *,
int check_time(unsigned, unsigned);
int parse_time(const char *, unsigned *, unsigned *);
int parse_duration(const char *, unsigned *);
+int parse_date_duration(const char *, unsigned *);
void file_close(FILE *, const char *);
void psleep(unsigned);
int fork_exec(int *, int *, const char *, const char *const *);