Timeline for Simple days between dates calculator
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 23, 2017 at 12:40 | history | edited | CommunityBot |
replaced http://stackoverflow.com/ with https://stackoverflow.com/
|
|
Jan 9, 2017 at 0:56 | vote | accept | Red | ||
Jan 9, 2017 at 0:56 | |||||
Jan 8, 2017 at 6:29 | comment | added | Cody Gray |
if (cond) { return true; } is an anti-pattern. Just return the evaluation of the condition(s) directly. In this case, return (start.year>end.year) || (start.month > end.month && start.year == end.year) || (start.day > end.day && start.month == end.month && start.year == end.year);
|
|
Jan 8, 2017 at 4:30 | history | answered | Jamal | CC BY-SA 3.0 |