summaryrefslogtreecommitdiffstats
path: root/src/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/utils.c b/src/utils.c
index a194b10..fd47de6 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -672,6 +672,12 @@ time_t get_today(void)
return date2sec(day, 0, 0);
}
+/* Returns the beginning of the selected day in the calendar. */
+time_t get_slctd_day(void)
+{
+ return date2sec(*ui_calendar_get_slctd_day(), 0, 0);
+}
+
/* Returns the current time in seconds. */
time_t now(void)
{