diff options
Diffstat (limited to 'rem.lua')
-rw-r--r-- | rem.lua | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -216,7 +216,11 @@ local rem_of_vcalendars do --[[-- remind(1): Note that duration is specified in hours and minutes. --]]-- local s - local ret = "" + local ret + + if dt == 0 then return nil end + + ret = "" s = dt % 60 ret = ret .. stringformat ("%0.2d", s) @@ -230,6 +234,9 @@ local rem_of_vcalendars do local rem_date_duration = function (t0, te, loctime) local dt = te - t0 local s_t0 = rem_date (t0, loctime) + + if dt == 0 then return s_t0 end + local s_dt = rem_duration (dt) return stringformat ("%s DURATION %s", s_t0, s_dt) |