We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cc9f3f commit 5159df0Copy full SHA for 5159df0
Moo/play/utils.py
@@ -4,10 +4,9 @@
4
'''
5
6
import os
7
+import math
8
import time
9
-from math import floor, ceil
10
-
11
12
def file_age(filepath):
13
@@ -23,15 +22,15 @@ def hours_minutes(seconds, colons=False):
23
22
hour = 60 * minute
24
25
if seconds >= hour:
26
- hours = floor(seconds / hour)
+ hours = math.floor(seconds / hour)
27
seconds = seconds % hour
28
if colons:
29
out.append(str(hours).zfill(2))
30
else:
31
out.append('{}h'.format(hours))
32
33
if seconds >= minute:
34
- minutes = ceil(seconds / minute)
+ minutes = math.ceil(seconds / minute)
35
36
out.append(str(minutes).zfill(2))
37
0 commit comments