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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user