From 844a522c0a1ca94fd640a95c7d928ac35c949e25 Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Tue, 21 Feb 2017 23:06:36 +0100 Subject: [PATCH] Return delta to current time in getTime() --- markov.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/markov.py b/markov.py index 00fde5e..aff5bf3 100755 --- a/markov.py +++ b/markov.py @@ -41,7 +41,7 @@ def getTime(now = datetime.datetime.now()): thenhour = now.hour + 1 if thenminute == 0 else now.hour then = datetime.datetime(now.year, now.month, now.day, thenhour, thenminute, 0) - return (then - now).seconds + return (then - datetime.datetime.now()).seconds if __name__ == "__main__": os.nice(5)