summaryrefslogtreecommitdiff
path: root/tools.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-05-22 13:23:22 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2004-05-22 13:23:22 +0200
commit5aacc51c14491fa029f6408f45685bf505c606b5 (patch)
tree488ca1c1cadf5bf7123bfd359c3812af2946eec9 /tools.c
parentbcbb3137e7ae46a124c1d3af03d7be1b23f5846b (diff)
downloadvdr-5aacc51c14491fa029f6408f45685bf505c606b5.tar.gz
vdr-5aacc51c14491fa029f6408f45685bf505c606b5.tar.bz2
Single shot timers and events now show the day of week
Diffstat (limited to 'tools.c')
-rw-r--r--tools.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools.c b/tools.c
index fc8cb294..42193b2f 100644
--- a/tools.c
+++ b/tools.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: tools.c 1.78 2004/01/11 15:42:30 kls Exp $
+ * $Id: tools.c 1.79 2004/05/22 12:13:27 kls Exp $
*/
#include "tools.h"
@@ -495,6 +495,12 @@ const char *WeekDayName(int WeekDay)
return "???";
}
+const char *WeekDayName(time_t t)
+{
+ struct tm tm_r;
+ return WeekDayName(localtime_r(&t, &tm_r)->tm_wday);
+}
+
const char *DayDateTime(time_t t)
{
static char buffer[32];