
14 Apr
2004
14 Apr
'04
3:53 p.m.
From: Val Samko <boost@digiways.com>
Wednesday, April 14, 2004, 5:05:37 AM, you wrote:
The only requirement for the add_month function I have is that after d2 = add_month(add_month(d1, N), -N), d1 and d2 should be in the same month.
Why do you have that requirement? Note that that fits my "next_month" idea just fine.
Someone developing a million line program should understand that add_month(add_month(d, 1), 1) may be not the same day as add_month(d, 2).
Shouldn't they expect them to arrive at the same or very nearly the same answer? -- Rob Stewart stewart@sig.com Software Engineer http://www.sig.com Susquehanna International Group, LLP using std::disclaimer;