Skip to content

Commit f570d26

Browse files
committed
Merge pull request #1 from Lonewolf19/patch-1
Adding "hour" function
2 parents 3d3ad40 + 7658b50 commit f570d26

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

function_library.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,3 +114,23 @@ def meter(num,endU):
114114
pass
115115

116116

117+
118+
def hour(num, endU):
119+
120+
if endU == "minute" or "Minutes" or "MINUTES":
121+
122+
num1 = num
123+
num *= 60
124+
125+
return num
126+
127+
elif endU == "Seconds" or "seconds":
128+
129+
num1 = num
130+
num *= 3600
131+
132+
return num
133+
134+
135+
else:
136+
pass

0 commit comments

Comments
 (0)