3 ms·
This is the test I use on all date libraries I come across. I don't know what the right answer is, I just want it to be logical: (pseudo) Date d = new Date('1
by encoderer 17y ago
This is the test I use on all date libraries I come across. I don't know what the right answer is, I just want it to be logical:
(pseudo)
Date d = new Date('1/31/2009');
d.addOneMonth();
What is the value of d? 2/28/09? 3/2/09? 2/25/09?
Writing a date library is not for the fainthearted.