Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
format long
format compact
datestr(now)
x=Top_of_Hour;
y=now;
datestr(y)
mmss_dec=rem(y*24,1) % hh:59:59 is 0.99972
Pass=0;
if mmss_dec<2/3600,Pass=1;end % 2 second threshold
assert(Pass==1,sprintf('%s',datestr(y)))
ans =
'26-Jun-2018 16:01:08'
ans =
'26-Jun-2018 16:01:09'
mmss_dec =
0.019178021699190
|
984 Solvers
Find the two most distant points
1233 Solvers
354 Solvers
Make a run-length companion vector
453 Solvers
Angles of the hands of a clock
27 Solvers