fix error warning about _SameDay bound twice
This commit is contained in:
parent
d159878f62
commit
d0b6fc0011
1 changed files with 1 additions and 1 deletions
|
@ -806,7 +806,7 @@ age_days(Birth) ->
|
|||
|
||||
age_days(Birth, Now) ->
|
||||
case {to_date(Birth), to_date(Now)} of
|
||||
{{_SameDay, _}, {_SameDay, _}} ->
|
||||
{{SameDay, _}, {SameDay, _}} ->
|
||||
0;
|
||||
{{BirthDate, BirthTime}, {NowDate, NowTime}} ->
|
||||
BirthDays = calendar:date_to_gregorian_days(BirthDate),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue