salavert / time-ago-in-words

Time ago in words Twig extension for Symfony framework
90 stars 30 forks source link

Added an approximation in months. #7

Closed Toomaie closed 11 years ago

Toomaie commented 11 years ago

I thought that it could be great to have an approximation in months as a high days number is harder to understand for people.

Thus, I just added an argument in both distanceOfTimeInWordsFilter and timeAgoInWordsFilter functions.

An example on my project: capture decran 2013-08-27 a 10 27 56

salavert commented 11 years ago

Hello Tom, thanks for your contribution. I wanted to hear the opinion from other users because I don't like the idea to start adding more parameters: include seconds?, include months?, and maybe later we add years? but I appreciate all efforts to make it better so I will merge it