from Test import Test, Test as test

'''
Clock shows h hours, m minutes and s seconds after midnight.

Your task is to write a function which returns the time since midnight in milliseconds.

Example:
h = 0
m = 1
s = 1

result = 61000
Input constraints:

0 <= h <= 23
'''

def past(h, m, s):
    return h * 3600000 + m * 60000 + s * 1000

test.assert_equals(past(0, 1, 1), 61000)
test.assert_equals(past(1, 1, 1), 3661000)
test.assert_equals(past(0, 0, 0), 0)
test.assert_equals(past(1, 0, 1), 3601000)
test.assert_equals(past(1, 0, 0), 3600000)
from Test import Test, Test as test

'''
Clock shows h hours, m minutes and s seconds after midnight.

Your task is to write a function which returns the time since midnight in milliseconds.

Example:
h = 0
m = 1
s = 1

result = 61000
Input constraints:

0 <= h <= 23
'''

def past(h, m, s):
    return h * 3600000 + m * 60000 + s * 1000

test.assert_equals(past(0, 1, 1), 61000)
test.assert_equals(past(1, 1, 1), 3661000)
test.assert_equals(past(0, 0, 0), 0)
test.assert_equals(past(1, 0, 1), 3601000)
test.assert_equals(past(1, 0, 0), 3600000)
Clock shows h hours, m minutes and s seconds after midnight.  Your task is to write a function which returns the time since midnight in milliseconds.  Example: h = 0 m = 1 s = 1  result = 61000 Input constraints:  0 <= h <= 23