From e35a7e473724cc1f6f28196fba9a10a0b27d4861 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Thu, 11 Apr 2013 21:22:05 +0100 Subject: Improve reporting of sleep time --- desktop-cronish | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/desktop-cronish b/desktop-cronish index 53e52ed..0765bd2 100755 --- a/desktop-cronish +++ b/desktop-cronish @@ -85,7 +85,8 @@ class DesktopCronish(cliapp.Application): def wait_until(self, when): while self.now() < when: seconds = when - self.now() - self.status('Sleeping for %.1f seconds' % seconds) + t = time.localtime(when) + self.status(time.strftime('Sleeping until %H:%M:%S', t)) time.sleep(seconds) def execute_job(self, job_name): -- cgit v1.2.1