diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2004-05-22 13:23:22 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2004-05-22 13:23:22 +0200 |
commit | 5aacc51c14491fa029f6408f45685bf505c606b5 (patch) | |
tree | 488ca1c1cadf5bf7123bfd359c3812af2946eec9 /tools.c | |
parent | bcbb3137e7ae46a124c1d3af03d7be1b23f5846b (diff) | |
download | vdr-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.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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]; |