diff options
Diffstat (limited to 'lib/common.c')
-rw-r--r-- | lib/common.c | 5 |
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 //*************************************************************************** |