summaryrefslogtreecommitdiffstats
path: root/src/ui-calendar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui-calendar.c')
-rw-r--r--src/ui-calendar.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ui-calendar.c b/src/ui-calendar.c
index a668efb..407f294 100644
--- a/src/ui-calendar.c
+++ b/src/ui-calendar.c
@@ -144,6 +144,12 @@ void ui_calendar_set_current_date(void)
pthread_mutex_unlock(&date_thread_mutex);
}
+/* Return the current date. */
+struct date *ui_calendar_get_today(void)
+{
+ return &today;
+}
+
/* Needed to display sunday or monday as the first day of week in calendar. */
void ui_calendar_set_first_day_of_week(enum wday first_day)
{