Cody

Solution 1318200

Submitted on 28 Oct 2017 by Alfonso Nieto-Castanon
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 = '24-Oct-2016 20:26:28'; y_correct = 73587999999895.69; assert(abs(nanosecondsPassedToday(x)-y_correct)<0.05)

2   Pass
x = '24-Oct-2016 20:29:48'; y_correct = 73788000001385.8; assert(abs(nanosecondsPassedToday(x)-y_correct)<0.05)

3   Pass
x = '31-Oct-2016 13:19:42'; y_correct = 47982000002637.5; assert(abs(nanosecondsPassedToday(x)-y_correct)<0.05)

4   Pass
x = '04-Jan-1972 07:24:17'; y_correct = 26656999999657.3; assert(abs(nanosecondsPassedToday(x)-y_correct)<0.05)