diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-01-11 22:10:48 +0000 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-01-11 22:10:48 +0000 |
commit | c8af480f52b46e556d23ef012f3987aa3a0fc25b (patch) | |
tree | a744542a7b58f87912ad811cd6b0c0743512fbe1 /src/calcurse.h | |
parent | b8779e714a18b00e5c3f8172e1c425570ff8acf0 (diff) | |
download | calcurse-c8af480f52b46e556d23ef012f3987aa3a0fc25b.zip |
Make parse_date accept several short forms.
Short forms are only accepted in interactive mode (e.g. when using the
"Go to" function, editing a recurrent item's end date, and so on).
Samples: "1/1/30" for "01/01/2030", "26" for the 26th of the currently
selected month/year or "3/1" for Mar 01 (or Jan 03, depending on the
date format) of the currently selected year.
Diffstat (limited to 'src/calcurse.h')
-rw-r--r-- | src/calcurse.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/calcurse.h b/src/calcurse.h index b6e233c..f301b2e 100644 --- a/src/calcurse.h +++ b/src/calcurse.h @@ -1,4 +1,4 @@ -/* $Id: calcurse.h,v 1.5 2010/03/22 08:16:33 culot Exp $ */ +/* $Id: calcurse.h,v 1.6 2011/01/11 22:10:48 fleischer Exp $ */ /* * Calcurse - text-based organizer @@ -873,7 +873,8 @@ long mystrtol (const char *); void print_bool_option_incolor (WINDOW *, unsigned, int, int); char *new_tempfile (const char *, int); void erase_note (char **, enum eraseflg); -int parse_date (char *, enum datefmt, int *, int *, int *); +int parse_date (char *, enum datefmt, int *, int *, int *, + struct date *); char *str_toupper (char *); void file_close (FILE *, const char *); void psleep (unsigned); |