You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Month.from_day!(Date.t()) geht davon aus, dass jemand manuell ein Date Struct baut und dieses als Argument übergibt.
Denn Date.new(2018,13,17) wirft bereits ein Fehlertupel {:error, :invalid_date}.
Wir sollten daher die Funktion als deprecated markieren und loswerden und die Funktion Month.from_day/1 sollte anstatt eines Tupels direkt ein Month zurück geben.
The text was updated successfully, but these errors were encountered:
Month.from_day!(Date.t())
geht davon aus, dass jemand manuell ein Date Struct baut und dieses als Argument übergibt.Denn
Date.new(2018,13,17)
wirft bereits ein Fehlertupel{:error, :invalid_date}
.Wir sollten daher die Funktion als deprecated markieren und loswerden und die Funktion
Month.from_day/1
sollte anstatt eines Tupels direkt einMonth
zurück geben.The text was updated successfully, but these errors were encountered: