Ways to calculate number of years between two dates in Elixir
<p>In order the calculate the number of years between two dates I've written the following code on iex:</p>

<pre><code>&gt;date1 = {{2016,3,21},{0,0,0}}
&gt;date2= {{1983,12,27},{0,0,0}}
&gt;:calendar.time_difference(date1,date2)
</code></pre>

<p>that returns the number of days between the two dates. Is there another way to calculate the difference?</p>