Split out code for drawing week numbers

This allows for easily adding week numbers to other panel modes, such as
the monthly view.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
Lukas Fleischer
2015-04-10 09:29:17 +02:00
parent 5ac3d43e9a
commit ebb8116056
3 changed files with 116 additions and 99 deletions

View File

@@ -1051,6 +1051,7 @@ int is_all_digit(const char *);
long get_item_time(long);
int get_item_hour(long);
int get_item_min(long);
struct tm date2tm(struct date, unsigned, unsigned);
time_t date2sec(struct date, unsigned, unsigned);
time_t utcdate2sec(struct date, unsigned, unsigned);
char *date_sec2date_str(long, const char *);