From: Matthew Kerwin Date: 2013-02-23T06:07:33+09:00 Subject: Re: Difference of 2 dates interms of years. --bcaec554001a58c11c04d6569484 Content-Type: text/plain; charset=ISO-8859-1 On Feb 23, 2013 6:59 AM, "Xavier R." wrote: > > Matt Mongeau wrote in post #1098486: > > How might you modify that to handle years? > > I was actually trying to get the years from the below : > > Yr = #{days}/ 365 > > but not working. And thus I am looking for another technique. The technique is right; the details are wrong. Read the error message to fix the syntax error, and look up floating point numbers if you need more precision. --bcaec554001a58c11c04d6569484 Content-Type: text/html; charset=ISO-8859-1

On Feb 23, 2013 6:59 AM, "Xavier R." <lists@ruby-forum.com> wrote:
>
> Matt Mongeau wrote in post #1098486:
> > How might you modify that to handle years?
>
> I was actually trying to get the years from the below :
>
> Yr = #{days}/ 365
>
> but not working. And thus I am looking for another technique.

The technique is right; the details are wrong. Read the error message to fix the syntax error, and look up floating point numbers if you need more precision.

--bcaec554001a58c11c04d6569484--