Problem 720. Find number of days
Solution Stats
Problem Comments
-
7 Comments
Answers are wrong. They ignore leap days. There are four from 15-Jan-2000 thru May 2012. function datenum provides correct answer
I agree with Richard. I also think that the first two out of the three test cases are wrong.
I also agree with the above comments
as do i
I went ahead and updated the test.
daysact(x1,x2) not working
Is there a mistake in the problem or the site?
https://www.timeanddate.com/date/durationresult.html?y1=1000&m1=1&d1=15&y2=2012&m2=5&d2=24
Solution Comments
-
1 Comment
@Szász Botond, daysact is a part of Financial toolbox system which Cody doesn't support.
-
2 Comments
function ans = countDays(x1,x2)
daysdif(x1, x2);
end
this working my system but test suit fails
help me
daysdif() is a part of Financial toolbox system which Cody doesn't support.
Problem Recent Solvers181
Suggested Problems
-
285 Solvers
-
Back to basics 11 - Max Integer
750 Solvers
-
Remove white space from the string
188 Solvers
-
Sum the elements in either diagonal of a square matrix
203 Solvers
-
Sum the 'edge' values of a matrix
308 Solvers
More from this Author11
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!