summaryrefslogtreecommitdiff
path: root/lib/common.c
diff options
context:
space:
mode:
authorhorchi <vdr@jwendel.de>2020-02-14 08:24:22 +0100
committerhorchi <vdr@jwendel.de>2020-02-14 08:24:22 +0100
commit2e2804214a97a6fac527d90652b82238a769e67f (patch)
tree93d7823ff490f2e9cc2d0634348ba97f0bd93390 /lib/common.c
parent15f0fdaa237a7ddd2d29c1e2baee70806807ceb5 (diff)
downloadvdr-plugin-epg2vdr-dev.tar.gz
vdr-plugin-epg2vdr-dev.tar.bz2
fixed time handling for timerdev
Diffstat (limited to 'lib/common.c')
-rw-r--r--lib/common.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/common.c b/lib/common.c
index 2793537..e6bafae 100644
--- a/lib/common.c
+++ b/lib/common.c
@@ -672,6 +672,11 @@ int l2hhmm(time_t t)
return tm.tm_hour * 100 + tm.tm_min;
}
+time_t hhmm2L(int hhmm, time_t offset)
+{
+ return ((hhmm/100) * tmeSecondsPerHour) + ((hhmm%100) * tmeSecondsPerMinute) + offset;
+}
+
//***************************************************************************
// HHMM to Pretty Time
//***************************************************************************