Cody

Problem 43610. nanoseconds passed today

Solution 1044087

Submitted on 4 Nov 2016 by LY Cao
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, sign in.

Test Suite

Test Status Code Input and Output
1   Pass
x = '24-Oct-2016 20:26:28'; y_correct = 73587999999895.69; assert(isequal(nanosecondsPassedToday(x),y_correct)) x = '24-Oct-2016 20:29:48'; y_correct = 73788000001385.8; assert(isequal(nanosecondsPassedToday(x),y_correct))

ans = 7.3588e+13 ans = 7.3788e+13

Suggested Problems

More from this Author15

Community Treasure Hunt

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

Start Hunting!