Cody

# Problem 42353. Can't wait for NewYear ball drop !

Solution 679329

Submitted on 2 Jun 2015 by Varoujan
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Pass
%% x = '2014-12-31 10:15:45'; y_correct = '000 days, 13 hours, 44 minutes, 15 seconds to go.'; assert(isequal(CantWaitTillBallDrops(x),y_correct))

delT = 49455 d = 0 h = 13 m = 44 s = 15

2   Pass
%% x = '2014-05-26 10:15:45'; y_correct = '219 days, 13 hours, 44 minutes, 15 seconds to go.'; assert(isequal(CantWaitTillBallDrops(x),y_correct))

delT = 18971055 d = 219 h = 13 m = 44 s = 15

3   Pass
%% x = '2015-12-30'; y_correct = '002 days, 00 hours, 00 minutes, 00 seconds to go.'; assert(isequal(CantWaitTillBallDrops(x),y_correct))

delT = 172800 d = 2 h = 0 m = 0 s = 0

4   Pass
%% x = '2015-05-26'; y_correct = '220 days, 00 hours, 00 minutes, 00 seconds to go.'; assert(isequal(CantWaitTillBallDrops(x),y_correct))

delT = 19008000 d = 220 h = 0 m = 0 s = 0

### Community Treasure Hunt

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

Start Hunting!