Question

Write a function to find time duration between two times in minutes?

Login to Submit

Examples

time will be in this format: hh:mm aa

aa can be am or pm

Input: "3:00 pm", "3:15 pm"
Output: 15

Input: "3:10 pm", "3:12 pm"
Output: 2