summaryrefslogtreecommitdiff
path: root/tools.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-05-12 14:20:41 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2012-05-12 14:20:41 +0200
commit5f93700e07382ec2d1ef735f36f4f988f0318ad2 (patch)
tree188c7eff4ccbae80c5c505e25039b0b91328b2ae /tools.c
parent2193ea32f62c4394be13e2950896f49e01e1d14f (diff)
downloadvdr-5f93700e07382ec2d1ef735f36f4f988f0318ad2.tar.gz
vdr-5f93700e07382ec2d1ef735f36f4f988f0318ad2.tar.bz2
The new member function cSkinDisplayReplay::SetRecording() allows a skin to display more information about the currently played recording
Diffstat (limited to 'tools.c')
-rw-r--r--tools.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/tools.c b/tools.c
index 0f3ab0a9..bc01a5f0 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 2.23 2012/05/08 11:13:13 kls Exp $
+ * $Id: tools.c 2.24 2012/05/12 13:29:20 kls Exp $
*/
#include "tools.h"
@@ -1042,6 +1042,15 @@ cString DateString(time_t t)
return buf;
}
+cString ShortDateString(time_t t)
+{
+ char buf[32];
+ struct tm tm_r;
+ tm *tm = localtime_r(&t, &tm_r);
+ strftime(buf, sizeof(buf), "%d.%m.%y", tm);
+ return buf;
+}
+
cString TimeString(time_t t)
{
char buf[25];