Removing io:format left over from debuggin
This commit is contained in:
parent
dd38e5cf98
commit
628c87557a
1 changed files with 0 additions and 1 deletions
|
@ -621,7 +621,6 @@ add_weeks(Weeks) ->
|
||||||
|
|
||||||
add_months(Months, Date) ->
|
add_months(Months, Date) ->
|
||||||
{{Y,M,D}, Time} = to_date(Date),
|
{{Y,M,D}, Time} = to_date(Date),
|
||||||
io:format("~p,~p~n",[Y, M+Months]),
|
|
||||||
{TargetYear, TargetMonth} = fix_year_month({Y,M+Months}),
|
{TargetYear, TargetMonth} = fix_year_month({Y,M+Months}),
|
||||||
DaysInMonth = calendar:last_day_of_the_month(TargetYear, TargetMonth),
|
DaysInMonth = calendar:last_day_of_the_month(TargetYear, TargetMonth),
|
||||||
NewD = lists:min([DaysInMonth, D]),
|
NewD = lists:min([DaysInMonth, D]),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue