summaryrefslogtreecommitdiff
path: root/src/calcurse.h
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@calcurse.org>2016-10-09 18:11:33 +0200
committerLukas Fleischer <lfleischer@calcurse.org>2016-10-09 18:12:45 +0200
commit343d68596d0bf16d6e041d3a7871ceacbf54300b (patch)
tree425a3c6a56a56407904a7871fa95841dafd41829 /src/calcurse.h
parent1f39b5c6681536ef833a2e2e1312f2747be728f3 (diff)
downloadcalcurse-343d68596d0bf16d6e041d3a7871ceacbf54300b.zip
Factor out parse_datetime()
Create a new function that takes a time stamp and updates the date or time components of that time stamp according to a given date/time string. Use that function for updating the start time of an item. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'src/calcurse.h')
-rw-r--r--src/calcurse.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/calcurse.h b/src/calcurse.h
index c8f7bb9..3810db2 100644
--- a/src/calcurse.h
+++ b/src/calcurse.h
@@ -1136,6 +1136,7 @@ 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 *);
+int parse_datetime(const char *, long *);
void file_close(FILE *, const char *);
void psleep(unsigned);
int fork_exec(int *, int *, const char *, const char *const *);