Cody

Solution 2202739

Submitted on 9 Apr 2020 by Michael Jarboe
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= '2015-05-26'; y_correct = 220; assert(isequal(Days2NYE(x),y_correct))

X1 = datetime 26-May-2015 Y1 = datetime 31-Dec-2015 12:00:00 y = 220

2   Pass
x = '2015-12-30'; y_correct = 2; assert(isequal(Days2NYE(x),y_correct))

X1 = datetime 30-Dec-2015 Y1 = datetime 31-Dec-2015 12:00:00 y = 2

3   Pass
x = '2014-05-26 10:15:45'; y_correct = 219; assert(isequal(Days2NYE(x),y_correct))

X1 = datetime 26-May-2014 10:15:45 Y1 = datetime 31-Dec-2014 12:15:45 y = 219

4   Pass
x = '2014-12-31 10:15:45'; y_correct = 0; assert(isequal(Days2NYE(x),y_correct))

X1 = datetime 31-Dec-2014 10:15:45 Y1 = datetime 31-Dec-2014 12:15:45 y = 0