Cody

Problem 62. Elapsed Time

Created by Cody Team in Cody Challenge

Given two date strings d1 and d2 of the form yyyy/mm/dd HH:MM:SS (assume hours HH is in 24 hour mode), determine how much time, in decimal hours, separates them. Assume d2 is always later than d1.

Example:

 Input d1 = '2010/12/14 12:00:00'
 Input d2 = '2010/12/14 13:06:36'
 Output elapsed is 1.11

Solution Stats

44.42% Correct | 55.58% Incorrect
Last solution submitted on Jan 17, 2018

Problem Comments

Solution Comments

Tags

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!