Elapsed Time - MATLAB Cody - MATLAB Central

Problem 62. Elapsed Time

Difficulty:Rate

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

49.01% Correct | 50.99% Incorrect
Last Solution submitted on Mar 01, 2025

Problem Comments

Solution Comments

Show comments
Primes and Rough Numbers, Basic ideas
What is a rough number? What can they be used...
2
4

Problem Recent Solvers2965

Suggested Problems

More from this Author96

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Go to top of page