wildlyinaccurate / angular-relative-date

AngularJS filter to provide relative, human-readable dates.
69 stars 23 forks source link

Added years logic #25

Open KieranDotCo opened 7 years ago

KieranDotCo commented 7 years ago

In the current filter there is no logic for working out 'X years ago', I've made a change and modified tests, feel free to close if there is a reason that support for 'X years ago' doesn't exist.

wildlyinaccurate commented 7 years ago

Hey, thanks for this! I'm all for supporting "X years ago". There's not any particular reason for why it was missing.

There are a bunch of applications that use this filter and I don't want to potentially break their UI, so I'm wondering how we can merge this without negatively affecting existing users of this filter. I guess we could:

What do you think?