You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Given a time in -hour AM/PM format, convert it to military (24-hour) time.
47
+
48
+
# Note: Midnight is 12:00:00AM on a 12-hour clock, and 00:00:00 on a 24-hour clock. Noon is 12:00:00PM on a 12-hour clock, and 12:00:00 on a 24-hour clock.
49
+
50
+
# Function Description
51
+
52
+
# Complete the timeConversion function in the editor below. It should return a new string representing the input time in 24 hour format.
53
+
54
+
# timeConversion has the following parameter(s):
55
+
56
+
# s: a string representing time in hour format
57
+
# Input Format
58
+
59
+
# A single string containing a time in -hour clock format (i.e.: or ), where and .
60
+
61
+
# Constraints
62
+
63
+
# All input times are valid
64
+
# Output Format
65
+
66
+
# Convert and print the given time in -hour format, where .
0 commit comments